Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/FICN/src/network/CMakeLists.txt @ 719

Last change on this file since 719 was 659, checked in by nicolasc, 17 years ago
  • a lot of inlining of getfunctions
  • set libaudio to shared (not sure, if related: audioplayer + ingame sound == crash!)
  • minor space cleanups
File size: 1.7 KB
Line 
1PROJECT(Orxonox)
2
3SET( CHATCLIENT_SRC_FILES
4  ClientConnection.cc
5  Client.cc
6  PacketBuffer.cc
7  PacketDecoder.cc
8  PacketGenerator.cc
9  dummyclient3.cc
10)
11
12SET( CHATSERVER_SRC_FILES
13  ConnectionManager.cc
14  GameStateManager.cc
15  PacketBuffer.cc
16  PacketDecoder.cc
17  PacketGenerator.cc
18  dummyserver3.cc
19)
20
21SET( NETWORK_SRC_FILES
22  Client.cc
23  ClientConnection.cc
24  ClientInformation.cc
25  ConnectionManager.cc
26  GameStateManager.cc
27  GameStateClient.cc
28  PacketBuffer.cc
29  PacketDecoder.cc
30  PacketGenerator.cc
31  Server.cc
32  Synchronisable.cc
33  dummyserver3.cc
34)
35
36IF(WIN32)
37  ADD_LIBRARY(network ${NETWORK_SRC_FILES})
38ELSE(WIN32)
39  ADD_LIBRARY(network SHARED ${NETWORK_SRC_FILES})
40ENDIF(WIN32)
41
42TARGET_LINK_LIBRARIES(network ${ZLIB_LIBRARY} ${ENet_LIBRARY} ${Boost_thread_LIBRARIES})
43
44# chatserver for testing purposes
45ADD_EXECUTABLE(chatserver ${CHATSERVER_SRC_FILES})
46TARGET_LINK_LIBRARIES( chatserver
47  ${OGRE_LIBRARIES}
48  network
49  core
50  #objects
51  ${ENet_LIBRARY}
52  ${ZLIB_LIBRARY}
53  ${WINDOWS_ENET_DEPENDENCIES}
54)
55
56# chatclient for testing purpose
57ADD_EXECUTABLE(chatclient ${CHATCLIENT_SRC_FILES})
58TARGET_LINK_LIBRARIES( chatclient
59  ${OGRE_LIBRARIES}
60  network
61  core
62  #objects
63  ${ENet_LIBRARY}
64  ${ZLIB_LIBRARY}
65  ${WINDOWS_ENET_DEPENDENCIES}
66)
67
68# client for testing purpose
69ADD_EXECUTABLE(client dummyclient2.cc)
70TARGET_LINK_LIBRARIES( client
71  ${OGRE_LIBRARIES}
72  network
73  core
74  #objects
75  ${ENet_LIBRARY}
76  ${ZLIB_LIBRARY}
77  ${WINDOWS_ENET_DEPENDENCIES}
78)
79
80# server for testing purpose
81ADD_EXECUTABLE(server dummyserver.cc)
82TARGET_LINK_LIBRARIES( server
83  ${OGRE_LIBRARIES}
84  network
85  core
86  #objects
87  ${ENet_LIBRARY}
88  ${ZLIB_LIBRARY}
89  ${WINDOWS_ENET_DEPENDENCIES}
90)
91
Note: See TracBrowser for help on using the repository browser.