Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/questsystem4/src/network/CMakeLists.txt @ 2832

Last change on this file since 2832 was 2371, checked in by scheusso, 16 years ago

merged network branch to presentation branch

  • Property svn:eol-style set to native
File size: 1.0 KB
Line 
1SET( NETWORK_SRC_FILES
2  ChatListener.cc
3  Client.cc
4  ClientConnection.cc
5  ClientInformation.cc
6  ClientConnectionListener.cc
7  ConnectionManager.cc
8  GamestateManager.cc
9  GamestateClient.cc
10  GamestateHandler.cc
11  PacketBuffer.cc
12  Server.cc
13  TrafficControl.cc
14  Host.cc
15)
16
17ADD_SOURCE_DIRECTORY(NETWORK_SRC_FILES packet)
18ADD_SOURCE_DIRECTORY(NETWORK_SRC_FILES synchronisable)
19
20
21IF(WIN32)
22  ADD_LIBRARY( network ${NETWORK_SRC_FILES} )
23ELSE(WIN32)
24  ADD_LIBRARY( network SHARED ${NETWORK_SRC_FILES} )
25ENDIF(WIN32)
26
27TARGET_LINK_LIBRARIES( network
28  ${ZLIB_LIBRARY}
29  ${ENet_LIBRARY}
30  ${Boost_thread_LIBRARIES}
31  core
32)
33
34
35# build those parts only on request.
36IF(NETWORK_TESTING_ENABLED)
37  ##### test for gamestate stuff #####
38  SET( TEST_SRC_FILES
39    ${NETWORK_SRC_FILES}
40  )
41  ADD_EXECUTABLE(networktest ${TEST_SRC_FILES})
42  TARGET_LINK_LIBRARIES( networktest
43    ${OGRE_LIBRARIES}
44    network
45    ${ENet_LIBRARY}
46    ${ZLIB_LIBRARY}
47    ${WINDOWS_ENET_DEPENDENCIES}
48  )
49  ##### end test for gamestate stuff #####
50ENDIF(NETWORK_TESTING_ENABLED)
Note: See TracBrowser for help on using the repository browser.