Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/src/network/CMakeLists.txt @ 2650

Last change on this file since 2650 was 2634, checked in by rgrieder, 16 years ago

Fixed INSTALL target for Windows. The problem was that RUNTIME DESTINATION was missing for the libraries because a dll is considered a runtime target.

  • Property svn:eol-style set to native
File size: 2.0 KB
Line 
1 #
2 #             ORXONOX - the hottest 3D action shooter ever to exist
3 #                             > www.orxonox.net <
4 #
5 #        This program is free software; you can redistribute it and/or
6 #         modify it under the terms of the GNU General Public License
7 #        as published by the Free Software Foundation; either version 2
8 #            of the License, or (at your option) any later version.
9 #
10 #       This program is distributed in the hope that it will be useful,
11 #        but WITHOUT ANY WARRANTY; without even the implied warranty of
12 #        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 #                 GNU General Public License for more details.
14 #
15 #   You should have received a copy of the GNU General Public License along
16 #      with this program; if not, write to the Free Software Foundation,
17 #     Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18 #
19
20SET_SOURCE_FILES(NETWORK_SRC_FILES
21  ChatListener.cc
22  Client.cc
23  ClientConnection.cc
24  ClientInformation.cc
25  ClientConnectionListener.cc
26  ConnectionManager.cc
27  GamestateManager.cc
28  GamestateClient.cc
29  GamestateHandler.cc
30  PacketBuffer.cc
31  Server.cc
32  Synchronisable.cc
33  Host.cc
34)
35ADD_SUBDIRECTORY(packet)
36GET_ALL_HEADER_FILES(NETWORK_HDR_FILES)
37SET(NETWORK_FILES ${NETWORK_SRC_FILES} ${NETWORK_HDR_FILES})
38
39GENERATE_SOURCE_GROUPS(${NETWORK_FILES})
40
41ADD_LIBRARY(network SHARED ${NETWORK_FILES})
42SET_TARGET_PROPERTIES(network PROPERTIES DEFINE_SYMBOL "NETWORK_SHARED_BUILD")
43TARGET_LINK_LIBRARIES(network
44  ${ZLIB_LIBRARY}
45  ${ENET_LIBRARY}
46  ${Boost_THREAD_LIBRARY}
47  util
48  core
49)
50
51ORXONOX_INSTALL(network)
52
53# build those parts only on request.
54IF(NETWORK_TESTING_ENABLED)
55  ##### test for gamestate stuff #####
56  SET(TEST_SRC_FILES
57    ${NETWORK_SRC_FILES}
58  )
59  ADD_EXECUTABLE(networktest ${TEST_SRC_FILES})
60  TARGET_LINK_LIBRARIES(networktest
61    ${OGRE_LIBRARY}
62    network
63    ${ENET_LIBRARY}
64    ${ZLIB_LIBRARY}
65  )
66  ##### end test for gamestate stuff #####
67ENDIF(NETWORK_TESTING_ENABLED)
Note: See TracBrowser for help on using the repository browser.