mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-27 09:16:18 +00:00
15 lines
704 B
CMake
15 lines
704 B
CMake
FILE(GLOB SRC *.cpp *.h)
|
|
|
|
ADD_EXECUTABLE(admin_service ${SRC})
|
|
|
|
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MYSQL_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR} ${NELMISC_INCLUDE_DIRS})
|
|
TARGET_LINK_LIBRARIES(admin_service ${PLATFORM_LINKFLAGS} ${LIBXML2_LIBRARIES} ${MYSQL_LIBRARIES} ${ZLIB_LIBRARIES} ${NELMISC_LIBRARY} ${NELNET_LIBRARY})
|
|
IF(WIN32)
|
|
SET_TARGET_PROPERTIES(admin_service PROPERTIES
|
|
LINK_FLAGS "/NODEFAULTLIB:libcmt /SUBSYSTEM:WINDOWS"
|
|
PROJECT_LABEL "Services: Admin Service")
|
|
ENDIF(WIN32)
|
|
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
|
|
|
INSTALL(TARGETS admin_service RUNTIME DESTINATION sbin COMPONENT as)
|
|
INSTALL(FILES admin_service.cfg common.cfg DESTINATION etc/nel/nelns COMPONENT as)
|