source:
code/branches/buildsystem2/src/network/CMakeLists.txt
@
2594
Last change on this file since 2594 was 2588, checked in by rgrieder, 16 years ago | |
---|---|
|
|
File size: 1.1 KB |
Rev | Line | |
---|---|---|
[2518] | 1 | ADD_SOURCE_FILES( |
[2087] | 2 | ChatListener.cc |
[1505] | 3 | Client.cc |
4 | ClientConnection.cc | |
5 | ClientInformation.cc | |
[2087] | 6 | ClientConnectionListener.cc |
[1505] | 7 | ConnectionManager.cc |
[1735] | 8 | GamestateManager.cc |
9 | GamestateClient.cc | |
10 | GamestateHandler.cc | |
[1505] | 11 | PacketBuffer.cc |
12 | Server.cc | |
13 | Synchronisable.cc | |
[1735] | 14 | Host.cc |
[1505] | 15 | ) |
16 | ||
[2518] | 17 | ADD_SOURCE_DIRECTORY(packet) |
[2131] | 18 | |
[2518] | 19 | WRITE_SOURCE_FILES(NETWORK_SRC_FILES) |
[2588] | 20 | |
21 | IF(MINGW) | |
[1505] | 22 | ADD_LIBRARY( network ${NETWORK_SRC_FILES} ) |
[2588] | 23 | ELSE(MINGW) |
[1505] | 24 | ADD_LIBRARY( network SHARED ${NETWORK_SRC_FILES} ) |
[2588] | 25 | ENDIF(MINGW) |
[1505] | 26 | |
[2588] | 27 | SET_TARGET_PROPERTIES(network PROPERTIES DEFINE_SYMBOL "NETWORK_SHARED_BUILD") |
28 | TARGET_LINK_LIBRARIES(network | |
[1505] | 29 | ${ZLIB_LIBRARY} |
[2581] | 30 | ${ENET_LIBRARY} |
[2509] | 31 | ${Boost_THREAD_LIBRARY} |
[2583] | 32 | util |
[1505] | 33 | core |
34 | ) | |
35 | ||
[2579] | 36 | IF (NOT WIN32) |
37 | INSTALL(TARGETS network LIBRARY DESTINATION lib) | |
38 | ENDIF (NOT WIN32) | |
[1505] | 39 | |
40 | # build those parts only on request. | |
41 | IF(NETWORK_TESTING_ENABLED) | |
42 | ##### test for gamestate stuff ##### | |
43 | SET( TEST_SRC_FILES | |
[1735] | 44 | ${NETWORK_SRC_FILES} |
[1505] | 45 | ) |
46 | ADD_EXECUTABLE(networktest ${TEST_SRC_FILES}) | |
47 | TARGET_LINK_LIBRARIES( networktest | |
[2509] | 48 | ${OGRE_LIBRARY} |
[1505] | 49 | network |
[2581] | 50 | ${ENET_LIBRARY} |
[1505] | 51 | ${ZLIB_LIBRARY} |
52 | ) | |
53 | ##### end test for gamestate stuff ##### | |
54 | ENDIF(NETWORK_TESTING_ENABLED) |
Note: See TracBrowser
for help on using the repository browser.