khanat-opennel-code/code/ryzom/server/src/server_share/CMakeLists.txt

30 lines
969 B
Text
Raw Normal View History

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})
IF(WITH_PCH)
ADD_NATIVE_PRECOMPILED_HEADER(server_share ${CMAKE_CURRENT_SOURCE_DIR}/stdpch.h ${CMAKE_CURRENT_SOURCE_DIR}/stdpch.cpp)
ENDIF(WITH_PCH)
INSTALL(TARGETS server_share LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)