Fix "no remove aqua speed" bug when player leaves the water
[ryzomcore.git] / nel / src / sound / driver / xaudio2 / CMakeLists.txt
blob62bbdcb5504ccfb80df76ef651fee1e2c615fb7e
1 FILE(GLOB SRC *.cpp *.h *.def *.rc)
3 SOURCE_GROUP(sfx FILES
4         buffer_xaudio2.cpp
5         buffer_xaudio2.h
6                 listener_xaudio2.cpp
7                 listener_xaudio2.h
8                 source_xaudio2.cpp
9                 source_xaudio2.h)
10                 
11 SOURCE_GROUP(sfx\\utility FILES
12         adpcm_xaudio2.cpp
13                 adpcm_xaudio2.h)
15 SOURCE_GROUP(music_remove FILES
16         music_channel_xaudio2.cpp
17                 music_channel_xaudio2.h)
18                 
19 SOURCE_GROUP(music_remove\\utility FILES
20         music_buffer.cpp
21                 music_buffer.h
22                 music_buffer_vorbis.cpp
23                 music_buffer_vorbis.h)
25 SOURCE_GROUP(efx FILES
26         effect_xaudio2.cpp
27         effect_xaudio2.h)
28                 
29 NL_TARGET_DRIVER(nel_drv_xaudio2_win ${SRC})
31 INCLUDE_DIRECTORIES(BEFORE ${DXSDK_INCLUDE_DIR})
33 TARGET_LINK_LIBRARIES(nel_drv_xaudio2_win nelmisc nelsnd_lowlevel ${DXSDK_XAUDIO_LIBRARY})
35 NL_DEFAULT_PROPS(nel_drv_xaudio2_win "NeL, Driver, Sound: XAudio2")
36 NL_ADD_RUNTIME_FLAGS(nel_drv_xaudio2_win)
37 NL_ADD_LIB_SUFFIX(nel_drv_xaudio2_win)
39 IF(WITH_PCH)
40   ADD_NATIVE_PRECOMPILED_HEADER(nel_drv_xaudio2_win ${CMAKE_CURRENT_SOURCE_DIR}/stdxaudio2.h ${CMAKE_CURRENT_SOURCE_DIR}/stdxaudio2.cpp)
41 ENDIF()
43 IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC_DRIVERS) OR NOT WITH_STATIC_DRIVERS)
44   INSTALL(TARGETS nel_drv_xaudio2_win RUNTIME DESTINATION ${NL_DRIVER_PREFIX} LIBRARY DESTINATION ${NL_DRIVER_PREFIX} ARCHIVE DESTINATION ${NL_LIB_PREFIX} COMPONENT driverssound)
45   IF(WITH_MAXPLUGIN)
46     INSTALL(TARGETS nel_drv_xaudio2_win RUNTIME DESTINATION maxplugin COMPONENT driverssound)
47   ENDIF()
48 ENDIF()