Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem/src/network/CMakeLists.txt @ 2398

Last change on this file since 2398 was 2384, checked in by adrfried, 16 years ago

install targets added

  • Property svn:eol-style set to native
File size: 1.0 KB
RevLine 
[1505]1SET( NETWORK_SRC_FILES
2  Client.cc
3  ClientConnection.cc
4  ClientInformation.cc
5  ConnectionManager.cc
[1735]6  GamestateManager.cc
7  GamestateClient.cc
8  GamestateHandler.cc
[1505]9  PacketBuffer.cc
10  Server.cc
11  Synchronisable.cc
[1735]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
[1505]19)
20
21IF(WIN32)
22  ADD_LIBRARY( network ${NETWORK_SRC_FILES} )
23ELSE(WIN32)
24  ADD_LIBRARY( network SHARED ${NETWORK_SRC_FILES} )
25ENDIF(WIN32)
26
27TARGET_LINK_LIBRARIES( network
28  ${ZLIB_LIBRARY}
[2054]29  ${ENet_LIBRARIES}
[1977]30  ${Boost_THREAD_LIBRARY}
[1505]31  core
32)
33
[2384]34INSTALL(TARGETS network LIBRARY DESTINATION lib)
[1505]35
36# build those parts only on request.
37IF(NETWORK_TESTING_ENABLED)
38  ##### test for gamestate stuff #####
39  SET( TEST_SRC_FILES
[1735]40    ${NETWORK_SRC_FILES}
[1505]41  )
42  ADD_EXECUTABLE(networktest ${TEST_SRC_FILES})
43  TARGET_LINK_LIBRARIES( networktest
[2198]44    ${OGRE_LIBRARY}
[1505]45    network
[2054]46    ${ENet_LIBRARIES}
[1505]47    ${ZLIB_LIBRARY}
48  )
49  ##### end test for gamestate stuff #####
50ENDIF(NETWORK_TESTING_ENABLED)
Note: See TracBrowser for help on using the repository browser.