1 FILE(GLOB SRC *.cpp *.h *.def *.rc)
4 SET(NLDRV_AL_LIB "nel_drv_openal_win")
6 SET(NLDRV_AL_LIB "nel_drv_openal")
13 SOURCE_GROUP(sfx FILES
23 SOURCE_GROUP(util FILES
27 NL_TARGET_DRIVER(${NLDRV_AL_LIB} ${SRC})
29 INCLUDE_DIRECTORIES(${OPENAL_INCLUDE_DIR})
31 TARGET_LINK_LIBRARIES(${NLDRV_AL_LIB} ${OPENAL_LIBRARY} nelmisc nelsnd_lowlevel)
32 NL_DEFAULT_PROPS(${NLDRV_AL_LIB} "NeL, Driver, Sound: OpenAL")
33 NL_ADD_RUNTIME_FLAGS(${NLDRV_AL_LIB})
34 NL_ADD_LIB_SUFFIX(${NLDRV_AL_LIB})
37 # Find and include EFX-Util on Windows.
40 INCLUDE_DIRECTORIES(${EFXUTIL_INCLUDE_DIR})
41 TARGET_LINK_LIBRARIES(${NLDRV_AL_LIB} ${EFXUTIL_LIBRARY})
42 ADD_DEFINITIONS(-DEFX_CREATIVE_AVAILABLE=1)
47 ADD_NATIVE_PRECOMPILED_HEADER(${NLDRV_AL_LIB} ${CMAKE_CURRENT_SOURCE_DIR}/stdopenal.h ${CMAKE_CURRENT_SOURCE_DIR}/stdopenal.cpp)
50 IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC_DRIVERS) OR NOT WITH_STATIC_DRIVERS)
51 INSTALL(TARGETS ${NLDRV_AL_LIB} RUNTIME DESTINATION ${NL_DRIVER_PREFIX} LIBRARY DESTINATION ${NL_DRIVER_PREFIX} ARCHIVE DESTINATION ${NL_LIB_PREFIX} COMPONENT driverssound)
53 INSTALL(TARGETS ${NLDRV_AL_LIB} RUNTIME DESTINATION maxplugin COMPONENT driverssound)