Changed: Updated samples CMake projects
parent
4f02a8591a
commit
ee40f8f9b5
@ -1,28 +1,16 @@
|
||||
|
||||
|
||||
ADD_EXECUTABLE(nl_sample_chatclient client.cpp kbhit.cpp kbhit.h)
|
||||
|
||||
ADD_EXECUTABLE(nl_sample_chatserver server.cpp)
|
||||
ADD_EXECUTABLE(nl_sample_chatserver WIN32 server.cpp)
|
||||
|
||||
ADD_DEFINITIONS(-DCHAT_DIR="\\"${NL_SHARE_PREFIX}/nl_sample_chat/\\"")
|
||||
|
||||
|
||||
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
|
||||
TARGET_LINK_LIBRARIES(nl_sample_chatclient ${PLATFORM_LINKFLAGS} nelmisc nelnet)
|
||||
NL_DEFAULT_PROPS(nl_sample_chatclient "Samples, Net, Chat: Chat Client")
|
||||
NL_ADD_RUNTIME_FLAGS(nl_sample_chatclient)
|
||||
|
||||
TARGET_LINK_LIBRARIES(nl_sample_chatserver ${PLATFORM_LINKFLAGS} nelmisc nelnet)
|
||||
IF(WIN32)
|
||||
SET_TARGET_PROPERTIES(nl_sample_chatclient PROPERTIES
|
||||
LINK_FLAGS_DEBUG "${CMAKE_LINK_FLAGS_DEBUG}"
|
||||
LINK_FLAGS_RELEASE "${CMAKE_LINK_FLAGS_RELEASE}"
|
||||
LINK_FLAGS "/SUBSYSTEM:CONSOLE"
|
||||
PROJECT_LABEL "Samples, Net, Chat: Chat Client")
|
||||
SET_TARGET_PROPERTIES(nl_sample_chatserver PROPERTIES
|
||||
LINK_FLAGS_DEBUG "${CMAKE_LINK_FLAGS_DEBUG}"
|
||||
LINK_FLAGS_RELEASE "${CMAKE_LINK_FLAGS_RELEASE}"
|
||||
LINK_FLAGS "/SUBSYSTEM:WINDOWS"
|
||||
PROJECT_LABEL "Samples, Net, Chat: Chat Server")
|
||||
ENDIF(WIN32)
|
||||
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
||||
NL_DEFAULT_PROPS(nl_sample_chatserver "Samples, Net, Chat: Chat Server")
|
||||
NL_ADD_RUNTIME_FLAGS(nl_sample_chatserver)
|
||||
|
||||
INSTALL(TARGETS nl_sample_chatclient nl_sample_chatserver RUNTIME DESTINATION bin COMPONENT samplesnet)
|
||||
INSTALL(FILES chat_service.cfg client.cfg DESTINATION share/nel/nl_sample_chat COMPONENT samplesnet)
|
||||
|
@ -1,25 +1,16 @@
|
||||
ADD_EXECUTABLE(nl_sample_ct_ai_service ai_service.cpp)
|
||||
ADD_EXECUTABLE(nl_sample_ct_ai_service WIN32 ai_service.cpp)
|
||||
|
||||
ADD_EXECUTABLE(nl_sample_ct_gd_service gd_service.cpp)
|
||||
ADD_EXECUTABLE(nl_sample_ct_gd_service WIN32 gd_service.cpp)
|
||||
|
||||
ADD_DEFINITIONS(-DNL_CT_CFG="\\"${NL_SHARE_PREFIX}/nl_sample_class_transport/\\"")
|
||||
|
||||
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
|
||||
TARGET_LINK_LIBRARIES(nl_sample_ct_ai_service ${PLATFORM_LINKFLAGS} nelmisc nelnet)
|
||||
NL_DEFAULT_PROPS(nl_sample_ct_ai_service "Samples, Net, Class Transport: AI Service")
|
||||
NL_ADD_RUNTIME_FLAGS(nl_sample_ct_ai_service)
|
||||
|
||||
TARGET_LINK_LIBRARIES(nl_sample_ct_gd_service ${PLATFORM_LINKFLAGS} nelmisc nelnet)
|
||||
IF(WIN32)
|
||||
SET_TARGET_PROPERTIES(nl_sample_ct_ai_service PROPERTIES
|
||||
LINK_FLAGS_DEBUG "${CMAKE_LINK_FLAGS_DEBUG}"
|
||||
LINK_FLAGS_RELEASE "${CMAKE_LINK_FLAGS_RELEASE}"
|
||||
LINK_FLAGS "/SUBSYSTEM:WINDOWS"
|
||||
PROJECT_LABEL "Samples, Net, Class Transport: AI Service")
|
||||
SET_TARGET_PROPERTIES(nl_sample_ct_gd_service PROPERTIES
|
||||
LINK_FLAGS_DEBUG "${CMAKE_LINK_FLAGS_DEBUG}"
|
||||
LINK_FLAGS_RELEASE "${CMAKE_LINK_FLAGS_RELEASE}"
|
||||
LINK_FLAGS "/SUBSYSTEM:WINDOWS"
|
||||
PROJECT_LABEL "Samples, Net, Class Transport: GD Service")
|
||||
ENDIF(WIN32)
|
||||
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
||||
NL_DEFAULT_PROPS(nl_sample_ct_gd_service "Samples, Net, Class Transport: GD Service")
|
||||
NL_ADD_RUNTIME_FLAGS(nl_sample_ct_gd_service)
|
||||
|
||||
INSTALL(TARGETS nl_sample_ct_ai_service nl_sample_ct_gd_service RUNTIME DESTINATION bin COMPONENT samplesnet)
|
||||
INSTALL(FILES ai_service.cfg gd_service.cfg DESTINATION share/nel/nl_sample_class_transport COMPONENT samplesnet)
|
||||
|
@ -1,24 +1,16 @@
|
||||
ADD_EXECUTABLE(nl_sample_ls_client client.cpp)
|
||||
|
||||
ADD_EXECUTABLE(nl_sample_ls_fes frontend_service.cpp)
|
||||
ADD_EXECUTABLE(nl_sample_ls_fes WIN32 frontend_service.cpp)
|
||||
|
||||
ADD_DEFINITIONS(-DNL_LS_CFG="\\"${NL_SHARE_PREFIX}/nl_sample_login_system/\\"")
|
||||
|
||||
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
|
||||
TARGET_LINK_LIBRARIES(nl_sample_ls_client ${PLATFORM_LINKFLAGS} nelmisc nelnet)
|
||||
NL_DEFAULT_PROPS(nl_sample_ls_client "Samples, Net, Login Service: LS Client")
|
||||
NL_ADD_RUNTIME_FLAGS(nl_sample_ls_client)
|
||||
|
||||
TARGET_LINK_LIBRARIES(nl_sample_ls_fes ${PLATFORM_LINKFLAGS} nelmisc nelnet)
|
||||
IF(WIN32)
|
||||
SET_TARGET_PROPERTIES(nl_sample_ls_client PROPERTIES
|
||||
LINK_FLAGS_DEBUG "${CMAKE_LINK_FLAGS_DEBUG}"
|
||||
LINK_FLAGS_RELEASE "${CMAKE_LINK_FLAGS_RELEASE}"
|
||||
PROJECT_LABEL "Samples, Net, Login Service: LS Client")
|
||||
SET_TARGET_PROPERTIES(nl_sample_ls_fes PROPERTIES
|
||||
LINK_FLAGS_DEBUG "${CMAKE_LINK_FLAGS_DEBUG}"
|
||||
LINK_FLAGS_RELEASE "${CMAKE_LINK_FLAGS_RELEASE}"
|
||||
LINK_FLAGS "/SUBSYSTEM:WINDOWS"
|
||||
PROJECT_LABEL "Samples, Net, Login Service: LS Frontend")
|
||||
ENDIF(WIN32)
|
||||
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
||||
NL_DEFAULT_PROPS(nl_sample_ls_fes "Samples, Net, Login Service: LS Frontend")
|
||||
NL_ADD_RUNTIME_FLAGS(nl_sample_ls_fes)
|
||||
|
||||
INSTALL(TARGETS nl_sample_ls_client nl_sample_ls_fes RUNTIME DESTINATION bin COMPONENT samplesnet)
|
||||
INSTALL(FILES frontend_service.cfg client.cfg DESTINATION share/nel/nl_sample_login_system COMPONENT samplesnet)
|
||||
|
Loading…
Reference in New Issue