mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-19 13:46:13 +00:00
25 lines
844 B
CMake
25 lines
844 B
CMake
FILE(GLOB SRC *.cpp *.h)
|
|
FILE(GLOB HEADERS ../../include/nel/pacs/*.h)
|
|
|
|
NL_TARGET_LIB(nelpacs ${HEADERS} ${SRC})
|
|
|
|
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
|
|
|
|
TARGET_LINK_LIBRARIES(nelpacs nelmisc)
|
|
SET_TARGET_PROPERTIES(nelpacs PROPERTIES LINK_INTERFACE_LIBRARIES "")
|
|
NL_DEFAULT_PROPS(nelpacs "NeL, Library: NeL PACS")
|
|
NL_ADD_RUNTIME_FLAGS(nelpacs)
|
|
|
|
NL_ADD_LIB_SUFFIX(nelpacs)
|
|
|
|
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
|
|
|
IF(WITH_PCH)
|
|
ADD_NATIVE_PRECOMPILED_HEADER(nelpacs ${CMAKE_CURRENT_SOURCE_DIR}/stdpacs.h ${CMAKE_CURRENT_SOURCE_DIR}/stdpacs.cpp)
|
|
ENDIF(WITH_PCH)
|
|
|
|
NL_GEN_PC(nel-pacs.pc)
|
|
|
|
IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
|
|
INSTALL(TARGETS nelpacs LIBRARY DESTINATION ${NL_LIB_PREFIX} ARCHIVE DESTINATION ${NL_LIB_PREFIX} COMPONENT libraries)
|
|
ENDIF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
|