mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2025-01-16 12:45:32 +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
25 lines
1 KiB
CMake
25 lines
1 KiB
CMake
FILE(GLOB SRC *.cpp)
|
|
|
|
ADD_EXECUTABLE(nl_sample_udpclient client.cpp graph.cpp graph.h simlag.cpp simlag.h)
|
|
|
|
ADD_EXECUTABLE(nl_sample_udpserver WIN32 bench_service.cpp receive_task.cpp receive_task.h)
|
|
|
|
ADD_DEFINITIONS(-DUDP_DIR="\\"${NL_SHARE_ABSOLUTE_PREFIX}/nl_sample_udp/\\"")
|
|
|
|
IF(WITH_3D)
|
|
ADD_DEFINITIONS(-DUSE_3D)
|
|
ENDIF(WITH_3D)
|
|
|
|
TARGET_LINK_LIBRARIES(nl_sample_udpclient nelmisc nelnet nel3d)
|
|
TARGET_LINK_LIBRARIES(nl_sample_udpserver nelmisc nelnet)
|
|
NL_DEFAULT_PROPS(nl_sample_udpclient "NeL, Samples, Net, UDP: UDP Client")
|
|
NL_DEFAULT_PROPS(nl_sample_udpserver "NeL, Samples, Net, UDP: UDP Server")
|
|
NL_ADD_RUNTIME_FLAGS(nl_sample_udpclient)
|
|
NL_ADD_RUNTIME_FLAGS(nl_sample_udpserver)
|
|
|
|
INSTALL(TARGETS nl_sample_udpclient nl_sample_udpserver RUNTIME DESTINATION ${NL_BIN_PREFIX} COMPONENT samplesnet)
|
|
INSTALL(FILES bench_service.cfg client.cfg readme.txt DESTINATION ${NL_SHARE_PREFIX}/nl_sample_udp COMPONENT samplesnet)
|
|
|
|
IF(WITH_3D)
|
|
INSTALL(FILES n019003l.pfb DESTINATION ${NL_SHARE_PREFIX}/nl_sample_udp COMPONENT samplesnet)
|
|
ENDIF(WITH_3D)
|