2010-05-13 11:12:10 +00:00
|
|
|
FILE(GLOB SRC *.cpp *.h)
|
|
|
|
|
|
|
|
# Filter out the source files not actually compiled.
|
|
|
|
#LIST(REMOVE_ITEM SRC ${CMAKE_CURRENT_SOURCE_DIR}/Backup\ 1\ of\ admin_modules.cpp)
|
|
|
|
|
2010-05-20 20:40:16 +00:00
|
|
|
ADD_LIBRARY(server_share STATIC ${SRC})
|
2010-05-13 11:12:10 +00:00
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MYSQL_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR} ${NEL_INCLUDE_DIR})
|
2010-05-20 20:40:16 +00:00
|
|
|
TARGET_LINK_LIBRARIES(server_share ${NELMISC_LIBRARY}
|
|
|
|
${NELPACS_LIBRARY}
|
|
|
|
${MYSQL_LIBRARIES}
|
|
|
|
${ZLIB_LIBRARIES})
|
2010-05-13 11:12:10 +00:00
|
|
|
SET_TARGET_PROPERTIES(server_share PROPERTIES VERSION ${NL_VERSION})
|
|
|
|
|
|
|
|
IF(WIN32)
|
|
|
|
SET_TARGET_PROPERTIES(server_share
|
|
|
|
PROJECT_LABEL "Library: Server Share"
|
|
|
|
DEBUG_POSTFIX "_d"
|
|
|
|
RELEASE_POSTFIX "_r"
|
|
|
|
LINK_FLAGS_DEBUG "/NODEFAULTLIB:libc;libcmt;libcmtd;msvcrt"
|
|
|
|
LINK_FLAGS_RELEASE "/NODEFAULTLIB:libc;libcmt;libcmtd;msvcrtd")
|
|
|
|
ENDIF(WIN32)
|
|
|
|
|
|
|
|
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
|
|
|
|
|
|
|
INSTALL(TARGETS server_share LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
|