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)
|
|
|
|
|
2010-07-14 17:13:07 +00:00
|
|
|
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)
|
2010-07-14 17:13:07 +00:00
|
|
|
nl_default_props(nelsound "Library: NeL Sound")
|
2010-05-06 00:08:41 +00:00
|
|
|
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
|
|
|
|
2010-07-14 17:13:07 +00:00
|
|
|
nl_add_lib_suffix(nelsound)
|
2010-05-06 00:08:41 +00:00
|
|
|
|
2010-06-30 13:31:31 +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)
|
2010-06-25 06:33:15 +00:00
|
|
|
|
2010-07-14 17:13:07 +00:00
|
|
|
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)
|