2010-05-06 00:08:41 +00:00
|
|
|
FILE(GLOB SRC *.cpp *.h)
|
|
|
|
|
|
|
|
IF(NOT WIN32)
|
|
|
|
ADD_LIBRARY(nelpacs SHARED ${SRC})
|
2010-06-09 16:09:56 +00:00
|
|
|
CONFIGURE_FILE(nel-pacs.pc.in nel-pacs.pc)
|
2010-06-09 21:41:54 +00:00
|
|
|
INSTALL(FILES "${CMAKE_CURRENT_BINARY_DIR}/nel-pacs.pc" DESTINATION lib/pkgconfig)
|
2010-05-06 00:08:41 +00:00
|
|
|
ELSE(NOT WIN32)
|
|
|
|
ADD_LIBRARY(nelpacs STATIC ${SRC})
|
|
|
|
ENDIF(NOT WIN32)
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
|
|
|
|
TARGET_LINK_LIBRARIES(nelpacs ${LIBXML2_LIBRARIES} nelmisc)
|
|
|
|
SET_TARGET_PROPERTIES(nelpacs PROPERTIES
|
|
|
|
VERSION ${NL_VERSION}
|
|
|
|
PROJECT_LABEL "Library: NeL PACS")
|
|
|
|
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
|
|
|
|
|
|
|
IF(WIN32)
|
|
|
|
SET_TARGET_PROPERTIES(nelpacs PROPERTIES DEBUG_POSTFIX "_d" RELEASE_POSTFIX "_r")
|
|
|
|
ENDIF(WIN32)
|
|
|
|
|
|
|
|
INSTALL(TARGETS nelpacs LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
|