khanat-opennel-code/code/nel/samples/net/net_layer4/CMakeLists.txt
2019-03-30 22:40:35 +01:00

22 lines
1.1 KiB
CMake

ADD_EXECUTABLE(nl_sample_net_layer4_client client.cpp)
ADD_EXECUTABLE(nl_sample_net_layer4_fes WIN32 frontend_service.cpp)
ADD_EXECUTABLE(nl_sample_net_layer4_ps WIN32 ping_service.cpp)
ADD_DEFINITIONS(-DNL_LS_CFG="${NL_SHARE_ABSOLUTE_PREFIX}/nl_sample_net_layer4/")
TARGET_LINK_LIBRARIES(nl_sample_net_layer4_client nelmisc nelnet)
NL_DEFAULT_PROPS(nl_sample_net_layer4_client "NeL, Samples, Net, Net Layer 4: L4 Client")
NL_ADD_RUNTIME_FLAGS(nl_sample_net_layer4_client)
TARGET_LINK_LIBRARIES(nl_sample_net_layer4_fes nelmisc nelnet)
NL_DEFAULT_PROPS(nl_sample_net_layer4_fes "NeL, Samples, Net, Net Layer4: L4 Frontend")
NL_ADD_RUNTIME_FLAGS(nl_sample_net_layer4_fes)
TARGET_LINK_LIBRARIES(nl_sample_net_layer4_ps nelmisc nelnet)
NL_DEFAULT_PROPS(nl_sample_net_layer4_ps "NeL, Samples, Net, Net Layer4: L4 Ping Server")
NL_ADD_RUNTIME_FLAGS(nl_sample_net_layer4_ps)
INSTALL(TARGETS nl_sample_net_layer4_client nl_sample_net_layer4_fes nl_sample_net_layer4_ps RUNTIME DESTINATION ${NL_BIN_PREFIX} COMPONENT samplesnet)
INSTALL(FILES frontend_service.cfg ping_service.cfg DESTINATION ${NL_SHARE_PREFIX}/nl_sample_net_layer4 COMPONENT samplesnet)