khanat-opennel-code/code/nel/src/sound/CMakeLists.txt

26 lines
827 B
Text
Raw Normal View History

2010-05-06 00:08:41 +00:00
FILE(GLOB SRC *.cpp *.h)
2010-05-29 16:27:27 +00:00
# TODO: fixes a linking problem for libnelsound.dylib, but does not look like
# the cleanest way to solve the issue. FIXME!
IF(APPLE)
SET(SRC ${SRC} driver/sound_driver.cpp driver/buffer.cpp)
ENDIF(APPLE)
nl_target_lib(nelsound ${SRC})
2010-05-06 00:08:41 +00:00
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(nelsound ${LIBXML2_LIBRARIES} nelligo nelgeorges nel3d)
nl_default_props(nelsound "Library: NeL Sound")
2010-05-06 00:08:41 +00:00
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
nl_add_lib_suffix(nelsound)
2010-05-06 00:08:41 +00:00
IF(WITH_PCH)
ADD_NATIVE_PRECOMPILED_HEADER(nelsound ${CMAKE_CURRENT_SOURCE_DIR}/stdsound.h ${CMAKE_CURRENT_SOURCE_DIR}/stdsound.cpp)
ENDIF(WITH_PCH)
nl_gen_pc(nel-sound.pc)
2010-05-06 00:08:41 +00:00
INSTALL(TARGETS nelsound LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
ADD_SUBDIRECTORY(driver)