17 lines
558 B
CMake
17 lines
558 B
CMake
FILE(GLOB SRC *.cpp *.h)
|
|
|
|
NL_TARGET_LIB(nelpacs ${SRC})
|
|
|
|
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
|
|
TARGET_LINK_LIBRARIES(nelpacs ${LIBXML2_LIBRARIES} nelmisc)
|
|
NL_DEFAULT_PROPS(nelpacs "Library: NeL PACS")
|
|
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
|
|
|
NL_ADD_LIB_SUFFIX(nelpacs)
|
|
|
|
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)
|
|
INSTALL(TARGETS nelpacs LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
|