2010-05-06 00:08:41 +00:00
|
|
|
FILE(GLOB SRC *.cpp)
|
|
|
|
FILE(GLOB PRIV_H *.h)
|
|
|
|
FILE(GLOB PUB_H ../../include/nel/georges/*.h)
|
|
|
|
|
|
|
|
SOURCE_GROUP(headers FILES ${PRIV_H} ${PUB_H})
|
|
|
|
|
|
|
|
IF(NOT WIN32)
|
|
|
|
ADD_LIBRARY(nelgeorges SHARED ${SRC})
|
2010-06-09 16:09:56 +00:00
|
|
|
CONFIGURE_FILE(nel-georges.pc.in nel-georges.pc)
|
2010-06-09 21:41:54 +00:00
|
|
|
INSTALL(FILES "${CMAKE_CURRENT_BINARY_DIR}/nel-georges.pc" DESTINATION lib/pkgconfig)
|
2010-05-06 00:08:41 +00:00
|
|
|
ELSE(NOT WIN32)
|
|
|
|
ADD_LIBRARY(nelgeorges STATIC ${SRC})
|
|
|
|
ENDIF(NOT WIN32)
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
|
|
|
|
TARGET_LINK_LIBRARIES(nelgeorges nelmisc)
|
|
|
|
SET_TARGET_PROPERTIES(nelgeorges 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 Georges")
|
|
|
|
|
|
|
|
IF(WIN32)
|
|
|
|
SET_TARGET_PROPERTIES(nelgeorges PROPERTIES
|
|
|
|
DEBUG_POSTFIX "_d"
|
|
|
|
RELEASE_POSTFIX "_r")
|
|
|
|
ENDIF(WIN32)
|
|
|
|
|
|
|
|
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
|
|
|
|
2010-06-30 13:31:31 +00:00
|
|
|
IF(WITH_PCH)
|
|
|
|
ADD_NATIVE_PRECOMPILED_HEADER(nelgeorges ${CMAKE_CURRENT_SOURCE_DIR}/stdgeorges.h ${CMAKE_CURRENT_SOURCE_DIR}/stdgeorges.cpp)
|
|
|
|
ENDIF(WITH_PCH)
|
2010-06-25 06:33:15 +00:00
|
|
|
|
2010-05-06 00:08:41 +00:00
|
|
|
INSTALL(TARGETS nelgeorges LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
|