2012-05-29 13:31:11 +00:00
|
|
|
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)
|
|
|
|
|
2012-09-22 20:57:38 +00:00
|
|
|
ADD_DEFINITIONS(-DUDP_DIR="\\"${NL_SHARE_ABSOLUTE_PREFIX}/nl_sample_udp/\\"")
|
2012-05-29 13:31:11 +00:00
|
|
|
|
|
|
|
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)
|
|
|
|
|
2012-09-27 20:11:26 +00:00
|
|
|
INSTALL(TARGETS nl_sample_udpclient nl_sample_udpserver RUNTIME DESTINATION ${NL_BIN_PREFIX} COMPONENT samplesnet)
|
2012-09-22 20:57:38 +00:00
|
|
|
INSTALL(FILES bench_service.cfg client.cfg readme.txt DESTINATION ${NL_SHARE_PREFIX}/nl_sample_udp COMPONENT samplesnet)
|
2012-05-29 13:31:11 +00:00
|
|
|
|
|
|
|
IF(WITH_3D)
|
2012-09-22 20:57:38 +00:00
|
|
|
INSTALL(FILES n019003l.pfb DESTINATION ${NL_SHARE_PREFIX}/nl_sample_udp COMPONENT samplesnet)
|
2012-05-29 13:31:11 +00:00
|
|
|
ENDIF(WITH_3D)
|