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-05-06 00:08:41 +00:00
|
|
|
IF(NOT WIN32)
|
|
|
|
ADD_LIBRARY(nelsound SHARED ${SRC})
|
2010-06-09 16:09:56 +00:00
|
|
|
CONFIGURE_FILE(nel-sound.pc.in nel-sound.pc)
|
2010-06-09 21:41:54 +00:00
|
|
|
INSTALL(FILES "${CMAKE_CURRENT_BINARY_DIR}/nel-sound.pc" DESTINATION lib/pkgconfig)
|
2010-05-06 00:08:41 +00:00
|
|
|
ELSE(NOT WIN32)
|
|
|
|
ADD_LIBRARY(nelsound STATIC ${SRC})
|
|
|
|
ENDIF(NOT WIN32)
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
|
|
|
|
TARGET_LINK_LIBRARIES(nelsound ${LIBXML2_LIBRARIES} nelligo nelgeorges nel3d)
|
|
|
|
SET_TARGET_PROPERTIES(nelsound PROPERTIES
|
|
|
|
VERSION ${NL_VERSION}
|
2010-06-14 08:30:17 +00:00
|
|
|
SOVERSION ${NL_VERSION_MAJOR}
|
2010-05-06 00:08:41 +00:00
|
|
|
PROJECT_LABEL "Library: NeL Sound")
|
|
|
|
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
|
|
|
|
|
|
|
IF(WIN32)
|
|
|
|
SET_TARGET_PROPERTIES(nelsound PROPERTIES
|
|
|
|
DEBUG_POSTFIX "_d"
|
|
|
|
RELEASE_POSTFIX "_r")
|
|
|
|
ENDIF(WIN32)
|
|
|
|
|
2010-06-26 14:47:36 +00:00
|
|
|
ADD_NATIVE_PRECOMPILED_HEADER(nelsound ${CMAKE_CURRENT_SOURCE_DIR}/stdsound.h ${CMAKE_CURRENT_SOURCE_DIR}/stdsound.cpp)
|
2010-06-25 06:33:15 +00:00
|
|
|
|
2010-05-06 00:08:41 +00:00
|
|
|
INSTALL(TARGETS nelsound LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
|
|
|
|
|
|
|
|
ADD_SUBDIRECTORY(driver)
|