Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 2602 was 2588, checked in by rgrieder, 16 years ago

Visual Studio generator working for all build types. Compiles but does not run yet.

  • Had to define some export symbols
  • tinyxml and cpptcl have to be linked statically
  • some other libraries can be linked shared that were linked statically for windows (now for mingw only)
  • added two macros: ADD_CXX_FLAG(_flag _condition) and ADD_C_FLAG(_flag _condition)
  • Property svn:eol-style set to native
File size: 557 bytes
Line 
1SET ( AUDIO_SRC_FILES
2  AudioBuffer.cc
3  AudioManager.cc
4  AudioSource.cc
5  AudioStream.cc
6)
7
8ADD_CXX_FLAGS("-wd4244" MSVC)
9
10IF (MINGW)
11  ADD_LIBRARY( audio ${AUDIO_SRC_FILES} )
12ELSE (MINGW)
13  ADD_LIBRARY( audio SHARED ${AUDIO_SRC_FILES} )
14ENDIF (MINGW)
15
16SET_TARGET_PROPERTIES(audio PROPERTIES DEFINE_SYMBOL "AUDIO_SHARED_BUILD")
17TARGET_LINK_LIBRARIES( audio
18  ${OPENAL_LIBRARY}
19  ${ALUT_LIBRARY}
20  ${VORBISFILE_LIBRARY}
21  ${VORBIS_LIBRARY}
22  ${OGG_LIBRARY}
23  core
24  util
25)
26
27IF (NOT WIN32)
28  INSTALL(TARGETS audio LIBRARY DESTINATION lib)
29ENDIF (NOT WIN32)
Note: See TracBrowser for help on using the repository browser.