Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/releases/0.1.0/src/network/CMakeLists.txt @ 840

Last change on this file since 840 was 790, checked in by nicolasc, 17 years ago

merged FICN back into trunk
awaiting release.

File size: 2.0 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  dummyserver3.cc
14)
15
16IF(WIN32)
17  ADD_LIBRARY( network ${NETWORK_SRC_FILES})
18ELSE(WIN32)
19  ADD_LIBRARY( network SHARED ${NETWORK_SRC_FILES})
20ENDIF(WIN32)
21
22SET_TARGET_PROPERTIES( network PROPERTIES LINK_FLAGS "--no-undefined" )
23
24TARGET_LINK_LIBRARIES( network
25  ${ZLIB_LIBRARY}
26  ${ENet_LIBRARY}
27  ${Boost_thread_LIBRARIES}
28  core
29)
30
31# build those parts only on request.
32IF(NETWORK_TESTING_ENABLED)
33  SET( CHATCLIENT_SRC_FILES
34    ClientConnection.cc
35    Client.cc
36    PacketBuffer.cc
37    PacketDecoder.cc
38    PacketGenerator.cc
39    dummyclient3.cc
40  )
41
42  SET( CHATSERVER_SRC_FILES
43    ConnectionManager.cc
44    GameStateManager.cc
45    PacketBuffer.cc
46    PacketDecoder.cc
47    PacketGenerator.cc
48    dummyserver3.cc
49  )
50
51  # chatserver for testing purposes
52  ADD_EXECUTABLE(chatserver ${CHATSERVER_SRC_FILES})
53  TARGET_LINK_LIBRARIES( chatserver
54    ${OGRE_LIBRARIES}
55    network
56    core
57    #objects
58    ${ENet_LIBRARY}
59    ${ZLIB_LIBRARY}
60    ${WINDOWS_ENET_DEPENDENCIES}
61  )
62
63  # chatclient for testing purpose
64  ADD_EXECUTABLE(chatclient ${CHATCLIENT_SRC_FILES})
65  TARGET_LINK_LIBRARIES( chatclient
66    ${OGRE_LIBRARIES}
67    network
68    core
69    #objects
70    ${ENet_LIBRARY}
71    ${ZLIB_LIBRARY}
72    ${WINDOWS_ENET_DEPENDENCIES}
73  )
74
75  # client for testing purpose
76  ADD_EXECUTABLE(client dummyclient2.cc)
77  TARGET_LINK_LIBRARIES( client
78    ${OGRE_LIBRARIES}
79    network
80    core
81    #objects
82    ${ENet_LIBRARY}
83    ${ZLIB_LIBRARY}
84    ${WINDOWS_ENET_DEPENDENCIES}
85  )
86
87  # server for testing purpose
88  ADD_EXECUTABLE(server dummyserver.cc)
89  TARGET_LINK_LIBRARIES( server
90    ${OGRE_LIBRARIES}
91    network
92    core
93    #objects
94    ${ENet_LIBRARY}
95    ${ZLIB_LIBRARY}
96    ${WINDOWS_ENET_DEPENDENCIES}
97  )
98ENDIF(NETWORK_TESTING_ENABLED)
Note: See TracBrowser for help on using the repository browser.