Last change
on this file since 831 was
790,
checked in by nicolasc, 17 years ago
|
merged FICN back into trunk
awaiting release.
|
File size:
2.0 KB
|
Rev | Line | |
---|
[341] | 1 | SET( NETWORK_SRC_FILES |
---|
[376] | 2 | Client.cc |
---|
| 3 | ClientConnection.cc |
---|
[431] | 4 | ClientInformation.cc |
---|
[376] | 5 | ConnectionManager.cc |
---|
[431] | 6 | GameStateManager.cc |
---|
[415] | 7 | GameStateClient.cc |
---|
[376] | 8 | PacketBuffer.cc |
---|
| 9 | PacketDecoder.cc |
---|
| 10 | PacketGenerator.cc |
---|
| 11 | Server.cc |
---|
| 12 | Synchronisable.cc |
---|
[440] | 13 | dummyserver3.cc |
---|
[341] | 14 | ) |
---|
| 15 | |
---|
[555] | 16 | IF(WIN32) |
---|
[768] | 17 | ADD_LIBRARY( network ${NETWORK_SRC_FILES}) |
---|
[555] | 18 | ELSE(WIN32) |
---|
[768] | 19 | ADD_LIBRARY( network SHARED ${NETWORK_SRC_FILES}) |
---|
[555] | 20 | ENDIF(WIN32) |
---|
| 21 | |
---|
[768] | 22 | SET_TARGET_PROPERTIES( network PROPERTIES LINK_FLAGS "--no-undefined" ) |
---|
[441] | 23 | |
---|
[768] | 24 | TARGET_LINK_LIBRARIES( network |
---|
| 25 | ${ZLIB_LIBRARY} |
---|
| 26 | ${ENet_LIBRARY} |
---|
| 27 | ${Boost_thread_LIBRARIES} |
---|
| 28 | core |
---|
| 29 | ) |
---|
| 30 | |
---|
[732] | 31 | # build those parts only on request. |
---|
| 32 | IF(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 | ) |
---|
[441] | 41 | |
---|
[732] | 42 | SET( CHATSERVER_SRC_FILES |
---|
| 43 | ConnectionManager.cc |
---|
| 44 | GameStateManager.cc |
---|
| 45 | PacketBuffer.cc |
---|
| 46 | PacketDecoder.cc |
---|
| 47 | PacketGenerator.cc |
---|
| 48 | dummyserver3.cc |
---|
| 49 | ) |
---|
[441] | 50 | |
---|
[732] | 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 | ) |
---|
[538] | 62 | |
---|
[732] | 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 | ) |
---|
[441] | 74 | |
---|
[732] | 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 | ) |
---|
| 98 | ENDIF(NETWORK_TESTING_ENABLED) |
---|
Note: See
TracBrowser
for help on using the repository browser.