2012-05-29 13:31:11 +00:00
|
|
|
ADD_EXECUTABLE(nl_sample_chatclient client.cpp kbhit.cpp kbhit.h)
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(nl_sample_chatserver WIN32 server.cpp)
|
|
|
|
|
2012-09-22 20:57:38 +00:00
|
|
|
ADD_DEFINITIONS(-DCHAT_DIR="\\"${NL_SHARE_ABSOLUTE_PREFIX}/nl_sample_chat/\\"")
|
2012-05-29 13:31:11 +00:00
|
|
|
|
|
|
|
TARGET_LINK_LIBRARIES(nl_sample_chatclient nelmisc nelnet)
|
|
|
|
NL_DEFAULT_PROPS(nl_sample_chatclient "NeL, Samples, Net, Chat: Chat Client")
|
|
|
|
NL_ADD_RUNTIME_FLAGS(nl_sample_chatclient)
|
|
|
|
|
|
|
|
TARGET_LINK_LIBRARIES(nl_sample_chatserver nelmisc nelnet)
|
|
|
|
NL_DEFAULT_PROPS(nl_sample_chatserver "NeL, Samples, Net, Chat: Chat Server")
|
|
|
|
NL_ADD_RUNTIME_FLAGS(nl_sample_chatserver)
|
|
|
|
|
2012-09-27 20:11:26 +00:00
|
|
|
INSTALL(TARGETS nl_sample_chatclient nl_sample_chatserver RUNTIME DESTINATION ${NL_BIN_PREFIX} COMPONENT samplesnet)
|
2012-09-22 20:57:38 +00:00
|
|
|
INSTALL(FILES chat_service.cfg client.cfg DESTINATION ${NL_SHARE_PREFIX}/nl_sample_chat COMPONENT samplesnet)
|