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