Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/src/audio/CMakeLists.txt @ 2626

Last change on this file since 2626 was 2626, checked in by rgrieder, 15 years ago

Added license text to all CMake files except to the subdirectoties of the libraries.
Also adjusted some the Find script documentation and wrote Descriptions for every file not in src/.

  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1 #
2 #             ORXONOX - the hottest 3D action shooter ever to exist
3 #                             > www.orxonox.net <
4 #
5 #        This program is free software; you can redistribute it and/or
6 #         modify it under the terms of the GNU General Public License
7 #        as published by the Free Software Foundation; either version 2
8 #            of the License, or (at your option) any later version.
9 #
10 #       This program is distributed in the hope that it will be useful,
11 #        but WITHOUT ANY WARRANTY; without even the implied warranty of
12 #        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 #                 GNU General Public License for more details.
14 #
15 #   You should have received a copy of the GNU General Public License along
16 #      with this program; if not, write to the Free Software Foundation,
17 #     Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18 #
19
20SET_SOURCE_FILES(AUDIO_SRC_FILES
21  AudioBuffer.cc
22  AudioManager.cc
23  AudioSource.cc
24  AudioStream.cc
25)
26GET_ALL_HEADER_FILES(AUDIO_HDR_FILES)
27SET(AUDIO_FILES ${AUDIO_SRC_FILES} ${AUDIO_HDR_FILES})
28GENERATE_SOURCE_GROUPS(${AUDIO_FILES})
29
30ADD_COMPILER_FLAGS("-w44244" MSVC)
31
32IF (MINGW)
33  ADD_LIBRARY( audio ${AUDIO_FILES})
34ELSE (MINGW)
35  ADD_LIBRARY( audio SHARED ${AUDIO_FILES})
36ENDIF (MINGW)
37
38SET_TARGET_PROPERTIES(audio PROPERTIES DEFINE_SYMBOL "AUDIO_SHARED_BUILD")
39TARGET_LINK_LIBRARIES( audio
40  ${OPENAL_LIBRARY}
41  ${ALUT_LIBRARY}
42  ${VORBISFILE_LIBRARY}
43  ${VORBIS_LIBRARY}
44  ${OGG_LIBRARY}
45  core
46  util
47)
48
49IF (NOT WIN32)
50  INSTALL(TARGETS audio LIBRARY DESTINATION lib)
51ENDIF (NOT WIN32)
Note: See TracBrowser for help on using the repository browser.