Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/network/CMakeLists.txt @ 1967

Last change on this file since 1967 was 1907, checked in by scheusso, 16 years ago

merged network branch back to trunk

  • Property svn:eol-style set to native
File size: 1.0 KB
Line 
1SET( NETWORK_SRC_FILES
2  Client.cc
3  ClientConnection.cc
4  ClientInformation.cc
5  ConnectionManager.cc
6  GamestateManager.cc
7  GamestateClient.cc
8  GamestateHandler.cc
9  PacketBuffer.cc
10  Server.cc
11  Synchronisable.cc
12  Host.cc
13  packet/Packet.cc
14  packet/Chat.cc
15  packet/ClassID.cc
16  packet/Acknowledgement.cc
17  packet/Gamestate.cc
18  packet/Welcome.cc
19  packet/DeleteObjects.cc
20)
21
22IF(WIN32)
23  ADD_LIBRARY( network ${NETWORK_SRC_FILES} )
24ELSE(WIN32)
25  ADD_LIBRARY( network SHARED ${NETWORK_SRC_FILES} )
26ENDIF(WIN32)
27
28TARGET_LINK_LIBRARIES( network
29  ${ZLIB_LIBRARY}
30  ${ENet_LIBRARY}
31  ${Boost_thread_LIBRARIES}
32  core
33)
34
35
36# build those parts only on request.
37IF(NETWORK_TESTING_ENABLED)
38  ##### test for gamestate stuff #####
39  SET( TEST_SRC_FILES
40    ${NETWORK_SRC_FILES}
41  )
42  ADD_EXECUTABLE(networktest ${TEST_SRC_FILES})
43  TARGET_LINK_LIBRARIES( networktest
44    ${OGRE_LIBRARIES}
45    network
46    ${ENet_LIBRARY}
47    ${ZLIB_LIBRARY}
48    ${WINDOWS_ENET_DEPENDENCIES}
49  )
50  ##### end test for gamestate stuff #####
51ENDIF(NETWORK_TESTING_ENABLED)
Note: See TracBrowser for help on using the repository browser.