Linux multi-monitor fullscreen support
[ryzomcore.git] / nel / samples / net / udp / CMakeLists.txt
blob21ef87015ab393b30ec94b87127774eb2153d334
1 FILE(GLOB SRC *.cpp)
3 ADD_EXECUTABLE(nl_sample_udpclient client.cpp graph.cpp graph.h simlag.cpp simlag.h)
5 ADD_EXECUTABLE(nl_sample_udpserver WIN32 bench_service.cpp receive_task.cpp receive_task.h)
7 ADD_DEFINITIONS(-DUDP_DIR="\\"${NL_SHARE_ABSOLUTE_PREFIX}/nl_sample_udp/\\"")
9 IF(WITH_3D)
10   ADD_DEFINITIONS(-DUSE_3D)
11 ENDIF()
13 TARGET_LINK_LIBRARIES(nl_sample_udpclient nelmisc nelnet nel3d)
14 TARGET_LINK_LIBRARIES(nl_sample_udpserver nelmisc nelnet)
15 NL_DEFAULT_PROPS(nl_sample_udpclient "NeL, Samples, Net, UDP: UDP Client")
16 NL_DEFAULT_PROPS(nl_sample_udpserver "NeL, Samples, Net, UDP: UDP Server")
17 NL_ADD_RUNTIME_FLAGS(nl_sample_udpclient)
18 NL_ADD_RUNTIME_FLAGS(nl_sample_udpserver)
20 INSTALL(TARGETS nl_sample_udpclient nl_sample_udpserver RUNTIME DESTINATION ${NL_BIN_PREFIX} COMPONENT samplesnet)
21 INSTALL(FILES bench_service.cfg client.cfg readme.txt DESTINATION ${NL_SHARE_PREFIX}/nl_sample_udp COMPONENT samplesnet)
23 IF(WITH_3D)
24   INSTALL(FILES n019003l.pfb DESTINATION ${NL_SHARE_PREFIX}/nl_sample_udp COMPONENT samplesnet)
25 ENDIF()