mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2025-01-10 18:05:21 +00:00
25 lines
817 B
CMake
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)
|