Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Fixes:

  • Improved OpenAL include hack (no, it's not hackier now, I really mean 'improved')
  • Network and Audio shared linking for MinGW (using alut and openal sdk binaries now)
  • TCL and ZLIB find scripts may have found the wrong library when using dependency packages (happened with MATLAB libz.dll because of the PATH variable)
  • Disabled auto boost auto linking (also removes ugly hack in LibraryConfig.cmake)

Updates:

  • OpenAL 1.1 for MinGW
  • Ogre 1.4.9 for MinGW
  • 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_FILES
21  AudioBuffer.h
22  AudioIncludes.h
23  AudioManager.h
24  AudioPrereqs.h
25  AudioSource.h
26  AudioStream.h
27
28  AudioBuffer.cc
29  AudioManager.cc
30  AudioSource.cc
31  AudioStream.cc
32)
33#GET_ALL_HEADER_FILES(AUDIO_HDR_FILES)
34#SET(AUDIO_FILES ${AUDIO_SRC_FILES} ${AUDIO_HDR_FILES})
35GENERATE_SOURCE_GROUPS(${AUDIO_FILES})
36
37ADD_COMPILER_FLAGS("-w44244" MSVC)
38
39ADD_LIBRARY( audio SHARED ${AUDIO_FILES})
40SET_TARGET_PROPERTIES(audio PROPERTIES DEFINE_SYMBOL "AUDIO_SHARED_BUILD")
41TARGET_LINK_LIBRARIES( audio
42  ${OPENAL_LIBRARY}
43  ${ALUT_LIBRARY}
44  ${VORBISFILE_LIBRARY}
45  ${VORBIS_LIBRARY}
46  ${OGG_LIBRARY}
47  core
48  util
49)
50
51IF (NOT WIN32)
52  INSTALL(TARGETS audio LIBRARY DESTINATION lib)
53ENDIF (NOT WIN32)
Note: See TracBrowser for help on using the repository browser.