Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/archive/shader/src/network/CMakeLists.txt @ 10476

Last change on this file since 10476 was 1505, checked in by rgrieder, 16 years ago

f* svn: It doesn't even inform you if you attempt to set a non existing property. It is svn:eol-style and not eol-style when using the command by the way…

  • Property svn:eol-style set to native
File size: 3.6 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)
57# build this if you want dummyserver4 and dummyclient4
58IF(NETWORKTRAFFIC_TESTING_ENABLED)
59  ##### test network traffic #####
60  SET( DUMMYSERVER4_SRC_FILES
61    ConnectionManager.cc
62    GameStateManager.cc
63    PacketBuffer.cc
64    PacketDecoder.cc
65    PacketGenerator.cc
66    ClientConnection.cc
67    ClientInformation.cc
68    GameStateClient.cc
69    Server.cc
70    Client.cc 
71    Synchronisable.cc
72    dummyserver4.cc
73  )
74
75  SET( DUMMYCLIENT4_SRC_FILES
76    ConnectionManager.cc
77    GameStateManager.cc
78    PacketBuffer.cc
79    PacketDecoder.cc
80    PacketGenerator.cc
81    ClientConnection.cc
82    ClientInformation.cc
83    GameStateClient.cc
84    Server.cc
85    Client.cc 
86    Synchronisable.cc
87    dummyclient4.cc
88  )
89
90  ADD_EXECUTABLE(dummyserver4 ${DUMMYSERVER4_SRC_FILES})
91  TARGET_LINK_LIBRARIES( dummyserver4
92    network
93    ${ENet_LIBRARY}
94    ${ZLIB_LIBRARY}
95    ${WINDOWS_ENET_DEPENDENCIES}
96    ${Boost_thread_LIBRARIES}
97    core
98    orxonoxs
99    audio
100  )
101
102  ADD_EXECUTABLE(dummyclient4 ${DUMMYCLIENT4_SRC_FILES})
103  TARGET_LINK_LIBRARIES( dummyclient4
104    network
105    ${ENet_LIBRARY}
106    ${ZLIB_LIBRARY}
107    ${WINDOWS_ENET_DEPENDENCIES}
108    ${Boost_thread_LIBRARIES}
109    core
110    orxonoxs
111    audio
112  )
113ENDIF(NETWORKTRAFFIC_TESTING_ENABLED)
114
115IF(BLABLA)
116  SET( CHATCLIENT_SRC_FILES
117    ClientConnection.cc
118    Client.cc
119    PacketBuffer.cc
120    PacketDecoder.cc
121    PacketGenerator.cc
122    dummyclient3.cc
123  )
124
125  SET( CHATSERVER_SRC_FILES
126    ConnectionManager.cc
127    GameStateManager.cc
128    PacketBuffer.cc
129    PacketDecoder.cc
130    PacketGenerator.cc
131    dummyserver3.cc
132  )
133
134  # chatserver for testing purposes
135  ADD_EXECUTABLE(chatserver ${CHATSERVER_SRC_FILES})
136  TARGET_LINK_LIBRARIES( chatserver
137    ${OGRE_LIBRARIES}
138    network
139    core
140    #objects
141    ${ENet_LIBRARY}
142    ${ZLIB_LIBRARY}
143    ${WINDOWS_ENET_DEPENDENCIES}
144  )
145
146  # chatclient for testing purpose
147  ADD_EXECUTABLE(chatclient ${CHATCLIENT_SRC_FILES})
148  TARGET_LINK_LIBRARIES( chatclient
149    ${OGRE_LIBRARIES}
150    network
151    core
152    #objects
153    ${ENet_LIBRARY}
154    ${ZLIB_LIBRARY}
155    ${WINDOWS_ENET_DEPENDENCIES}
156  )
157
158  # client for testing purpose
159  ADD_EXECUTABLE(client dummyclient2.cc)
160  TARGET_LINK_LIBRARIES( client
161    ${OGRE_LIBRARIES}
162    network
163    core
164    #objects
165    ${ENet_LIBRARY}
166    ${ZLIB_LIBRARY}
167    ${WINDOWS_ENET_DEPENDENCIES}
168  )
169
170  # server for testing purpose
171  ADD_EXECUTABLE(server dummyserver.cc)
172  TARGET_LINK_LIBRARIES( server
173    ${OGRE_LIBRARIES}
174    network
175    core
176    #objects
177    ${ENet_LIBRARY}
178    ${ZLIB_LIBRARY}
179    ${WINDOWS_ENET_DEPENDENCIES}
180  )
181ENDIF(BLABLA)
182
Note: See TracBrowser for help on using the repository browser.