1 PKG_CHECK_MODULES(SERVER_DEP
6 FIND_PACKAGE(Boost REQUIRED)
7 FIND_PACKAGE(Threads REQUIRED)
9 INCLUDE_DIRECTORIES(SYSTEM
10 ${SERVER_DEP_INCLUDE_DIRS}
12 ${Threads_INCLUDE_DIRS}
17 ${COMMON_PATH}/include
18 ${SERVER_PATH}/main/include
19 ${SERVER_PATH}/service/include
20 ${DPL_PATH}/core/include
21 ${DPL_PATH}/log/include
25 ${SERVER_PATH}/main/generic-socket-manager.cpp
26 ${SERVER_PATH}/main/socket-manager.cpp
27 ${SERVER_PATH}/main/server-main.cpp
28 ${SERVER_PATH}/service/base-service.cpp
29 ${SERVER_PATH}/service/service.cpp
32 ADD_EXECUTABLE(${TARGET_SERVER} ${SERVER_SOURCES})
34 SET_TARGET_PROPERTIES(${TARGET_SERVER}
36 COMPILE_FLAGS "-D_GNU_SOURCE -fvisibility=hidden")
38 TARGET_LINK_LIBRARIES(${TARGET_SERVER}
40 ${CMAKE_THREAD_LIBS_INIT}
41 ${SERVER_DEP_LIBRARIES}
44 INSTALL(TARGETS ${TARGET_SERVER} DESTINATION ${BIN_INSTALL_DIR})