Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/network64/src/network/CMakeLists.txt @ 2309

Last change on this file since 2309 was 2211, checked in by scheusso, 16 years ago

moved some files (Synchronisable, NetworkCallback) to subfolder
synchronisable

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