1 FILE(GLOB SRC *.cpp *.h *.def *.rc)
11 SOURCE_GROUP(sfx\\utility FILES
15 SOURCE_GROUP(music_remove FILES
16 music_channel_xaudio2.cpp
17 music_channel_xaudio2.h)
19 SOURCE_GROUP(music_remove\\utility FILES
22 music_buffer_vorbis.cpp
23 music_buffer_vorbis.h)
25 SOURCE_GROUP(efx FILES
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)
40 ADD_NATIVE_PRECOMPILED_HEADER(nel_drv_xaudio2_win ${CMAKE_CURRENT_SOURCE_DIR}/stdxaudio2.h ${CMAKE_CURRENT_SOURCE_DIR}/stdxaudio2.cpp)
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)
46 INSTALL(TARGETS nel_drv_xaudio2_win RUNTIME DESTINATION maxplugin COMPONENT driverssound)