mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-11 17:59:02 +00:00
91e6b23d3f
NMAKE-VS2012 Error LNK2011 while NMAKE-VS2010 does not complain we need to link the pch.obj file see http://msdn.microsoft.com/en-us/library/3ay26wa2(v=vs.110).aspx ** PCH Support for Ninja Ninja need to add property OBJECT_DEPENDS for using PCH OBJECT_OUTPUTS for create PCH see http://public.kitware.com/pipermail/cmake-developers/2012-March/003653.html
16 lines
792 B
CMake
16 lines
792 B
CMake
ADD_EXECUTABLE(nl_sample_chatclient client.cpp kbhit.cpp kbhit.h)
|
|
|
|
ADD_EXECUTABLE(nl_sample_chatserver WIN32 server.cpp)
|
|
|
|
ADD_DEFINITIONS(-DCHAT_DIR="\\"${NL_SHARE_ABSOLUTE_PREFIX}/nl_sample_chat/\\"")
|
|
|
|
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)
|
|
|
|
INSTALL(TARGETS nl_sample_chatclient nl_sample_chatserver RUNTIME DESTINATION ${NL_BIN_PREFIX} COMPONENT samplesnet)
|
|
INSTALL(FILES chat_service.cfg client.cfg DESTINATION ${NL_SHARE_PREFIX}/nl_sample_chat COMPONENT samplesnet)
|