Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/network3/src/network/CMakeLists.txt @ 1261

Last change on this file since 1261 was 1168, checked in by scheusso, 17 years ago

added new network files

File size: 2.5 KB
Line 
1SET( NETWORK_SRC_FILES
2  Client.cc
3  ClientConnection.cc
4  ClientInformation.cc
5  ConnectionManager.cc
6  GameStateManager.cc
7  GameStateClient.cc
8  PacketBuffer.cc
9  PacketDecoder.cc
10  PacketGenerator.cc
11  Server.cc
12  Synchronisable.cc
13)
14
15IF(WIN32)
16  ADD_LIBRARY( network ${NETWORK_SRC_FILES} )
17ELSE(WIN32)
18  ADD_LIBRARY( network SHARED ${NETWORK_SRC_FILES} )
19ENDIF(WIN32)
20
21TARGET_LINK_LIBRARIES( network
22  ${ZLIB_LIBRARY}
23  ${ENet_LIBRARY}
24  ${Boost_thread_LIBRARIES}
25  core
26)
27
28
29# build those parts only on request.
30IF(NETWORK_TESTING_ENABLED)
31  ##### test for gamestate stuff #####
32  SET( TEST_SRC_FILES
33    ConnectionManager.cc
34    GameStateManager.cc
35    PacketBuffer.cc
36    PacketDecoder.cc
37    PacketGenerator.cc
38    ClientConnection.cc
39    ClientInformation.cc
40    diffTest.cc
41    GameStateClient.cc
42    Server.cc
43    Client.cc 
44    Synchronisable.cc 
45  )
46
47  ADD_EXECUTABLE(networktest ${TEST_SRC_FILES})
48  TARGET_LINK_LIBRARIES( networktest
49    ${OGRE_LIBRARIES}
50    network
51    ${ENet_LIBRARY}
52    ${ZLIB_LIBRARY}
53    ${WINDOWS_ENET_DEPENDENCIES}
54  )
55  ##### end test for gamestate stuff #####
56ENDIF(NETWORK_TESTING_ENABLED)
57IF(BLABLA)
58  SET( CHATCLIENT_SRC_FILES
59    ClientConnection.cc
60    Client.cc
61    PacketBuffer.cc
62    PacketDecoder.cc
63    PacketGenerator.cc
64    dummyclient3.cc
65  )
66
67  SET( CHATSERVER_SRC_FILES
68    ConnectionManager.cc
69    GameStateManager.cc
70    PacketBuffer.cc
71    PacketDecoder.cc
72    PacketGenerator.cc
73    dummyserver3.cc
74  )
75
76  # chatserver for testing purposes
77  ADD_EXECUTABLE(chatserver ${CHATSERVER_SRC_FILES})
78  TARGET_LINK_LIBRARIES( chatserver
79    ${OGRE_LIBRARIES}
80    network
81    core
82    #objects
83    ${ENet_LIBRARY}
84    ${ZLIB_LIBRARY}
85    ${WINDOWS_ENET_DEPENDENCIES}
86  )
87
88  # chatclient for testing purpose
89  ADD_EXECUTABLE(chatclient ${CHATCLIENT_SRC_FILES})
90  TARGET_LINK_LIBRARIES( chatclient
91    ${OGRE_LIBRARIES}
92    network
93    core
94    #objects
95    ${ENet_LIBRARY}
96    ${ZLIB_LIBRARY}
97    ${WINDOWS_ENET_DEPENDENCIES}
98  )
99
100  # client for testing purpose
101  ADD_EXECUTABLE(client dummyclient2.cc)
102  TARGET_LINK_LIBRARIES( client
103    ${OGRE_LIBRARIES}
104    network
105    core
106    #objects
107    ${ENet_LIBRARY}
108    ${ZLIB_LIBRARY}
109    ${WINDOWS_ENET_DEPENDENCIES}
110  )
111
112  # server for testing purpose
113  ADD_EXECUTABLE(server dummyserver.cc)
114  TARGET_LINK_LIBRARIES( server
115    ${OGRE_LIBRARIES}
116    network
117    core
118    #objects
119    ${ENet_LIBRARY}
120    ${ZLIB_LIBRARY}
121    ${WINDOWS_ENET_DEPENDENCIES}
122  )
123ENDIF(BLABLA)
124
Note: See TracBrowser for help on using the repository browser.