Last change
on this file since 1145 was
1070,
checked in by rgrieder, 17 years ago
|
- moved "—no-undefined" linker flag to root CMLs
- removed library directories for our own libs from root CMLs (might not work)
- removed warning in Hud.cc (float instead of integer)
|
File size:
2.0 KB
|
Line | |
---|
1 | SET( 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 | |
---|
16 | IF(WIN32) |
---|
17 | ADD_LIBRARY( network ${NETWORK_SRC_FILES} ) |
---|
18 | ELSE(WIN32) |
---|
19 | ADD_LIBRARY( network SHARED ${NETWORK_SRC_FILES} ) |
---|
20 | ENDIF(WIN32) |
---|
21 | |
---|
22 | TARGET_LINK_LIBRARIES( network |
---|
23 | ${ZLIB_LIBRARY} |
---|
24 | ${ENet_LIBRARY} |
---|
25 | ${Boost_thread_LIBRARIES} |
---|
26 | core |
---|
27 | ) |
---|
28 | |
---|
29 | |
---|
30 | # build those parts only on request. |
---|
31 | IF(NETWORK_TESTING_ENABLED) |
---|
32 | SET( CHATCLIENT_SRC_FILES |
---|
33 | ClientConnection.cc |
---|
34 | Client.cc |
---|
35 | PacketBuffer.cc |
---|
36 | PacketDecoder.cc |
---|
37 | PacketGenerator.cc |
---|
38 | dummyclient3.cc |
---|
39 | ) |
---|
40 | |
---|
41 | SET( CHATSERVER_SRC_FILES |
---|
42 | ConnectionManager.cc |
---|
43 | GameStateManager.cc |
---|
44 | PacketBuffer.cc |
---|
45 | PacketDecoder.cc |
---|
46 | PacketGenerator.cc |
---|
47 | dummyserver3.cc |
---|
48 | ) |
---|
49 | |
---|
50 | # chatserver for testing purposes |
---|
51 | ADD_EXECUTABLE(chatserver ${CHATSERVER_SRC_FILES}) |
---|
52 | TARGET_LINK_LIBRARIES( chatserver |
---|
53 | ${OGRE_LIBRARIES} |
---|
54 | network |
---|
55 | core |
---|
56 | #objects |
---|
57 | ${ENet_LIBRARY} |
---|
58 | ${ZLIB_LIBRARY} |
---|
59 | ${WINDOWS_ENET_DEPENDENCIES} |
---|
60 | ) |
---|
61 | |
---|
62 | # chatclient for testing purpose |
---|
63 | ADD_EXECUTABLE(chatclient ${CHATCLIENT_SRC_FILES}) |
---|
64 | TARGET_LINK_LIBRARIES( chatclient |
---|
65 | ${OGRE_LIBRARIES} |
---|
66 | network |
---|
67 | core |
---|
68 | #objects |
---|
69 | ${ENet_LIBRARY} |
---|
70 | ${ZLIB_LIBRARY} |
---|
71 | ${WINDOWS_ENET_DEPENDENCIES} |
---|
72 | ) |
---|
73 | |
---|
74 | # client for testing purpose |
---|
75 | ADD_EXECUTABLE(client dummyclient2.cc) |
---|
76 | TARGET_LINK_LIBRARIES( client |
---|
77 | ${OGRE_LIBRARIES} |
---|
78 | network |
---|
79 | core |
---|
80 | #objects |
---|
81 | ${ENet_LIBRARY} |
---|
82 | ${ZLIB_LIBRARY} |
---|
83 | ${WINDOWS_ENET_DEPENDENCIES} |
---|
84 | ) |
---|
85 | |
---|
86 | # server for testing purpose |
---|
87 | ADD_EXECUTABLE(server dummyserver.cc) |
---|
88 | TARGET_LINK_LIBRARIES( server |
---|
89 | ${OGRE_LIBRARIES} |
---|
90 | network |
---|
91 | core |
---|
92 | #objects |
---|
93 | ${ENet_LIBRARY} |
---|
94 | ${ZLIB_LIBRARY} |
---|
95 | ${WINDOWS_ENET_DEPENDENCIES} |
---|
96 | ) |
---|
97 | ENDIF(NETWORK_TESTING_ENABLED) |
---|
Note: See
TracBrowser
for help on using the repository browser.