khanat-opennel-code/code/ryzom/server/src/server_share/CMakeLists.txt
2010-07-01 10:50:57 +02:00

25 lines
817 B
CMake

FILE(GLOB SRC *.cpp *.h)
ADD_LIBRARY(server_share STATIC ${SRC})
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MYSQL_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR} ${NEL_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(server_share ${NELMISC_LIBRARY}
${NELPACS_LIBRARY}
${MYSQL_LIBRARIES}
${ZLIB_LIBRARIES})
SET_TARGET_PROPERTIES(server_share PROPERTIES
VERSION ${NL_VERSION}
SOVERSION ${NL_VERSION_MAJOR})
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)