Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 2630 was 2630, checked in by rgrieder, 15 years ago

Fixes:

  • Improved OpenAL include hack (no, it's not hackier now, I really mean 'improved')
  • Network and Audio shared linking for MinGW (using alut and openal sdk binaries now)
  • TCL and ZLIB find scripts may have found the wrong library when using dependency packages (happened with MATLAB libz.dll because of the PATH variable)
  • Disabled auto boost auto linking (also removes ugly hack in LibraryConfig.cmake)

Updates:

  • OpenAL 1.1 for MinGW
  • Ogre 1.4.9 for MinGW
  • Property svn:eol-style set to native
File size: 2.0 KB
RevLine 
[2626]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
[2621]20SET_SOURCE_FILES(NETWORK_SRC_FILES
[2087]21  ChatListener.cc
[1505]22  Client.cc
23  ClientConnection.cc
24  ClientInformation.cc
[2087]25  ClientConnectionListener.cc
[1505]26  ConnectionManager.cc
[1735]27  GamestateManager.cc
28  GamestateClient.cc
29  GamestateHandler.cc
[1505]30  PacketBuffer.cc
31  Server.cc
32  Synchronisable.cc
[1735]33  Host.cc
[1505]34)
[2621]35ADD_SUBDIRECTORY(packet)
36GET_ALL_HEADER_FILES(NETWORK_HDR_FILES)
37SET(NETWORK_FILES ${NETWORK_SRC_FILES} ${NETWORK_HDR_FILES})
[1505]38
[2621]39GENERATE_SOURCE_GROUPS(${NETWORK_FILES})
[2131]40
[2630]41ADD_LIBRARY(network SHARED ${NETWORK_FILES})
[2588]42SET_TARGET_PROPERTIES(network PROPERTIES DEFINE_SYMBOL "NETWORK_SHARED_BUILD")
43TARGET_LINK_LIBRARIES(network
[1505]44  ${ZLIB_LIBRARY}
[2581]45  ${ENET_LIBRARY}
[2509]46  ${Boost_THREAD_LIBRARY}
[2583]47  util
[1505]48  core
49)
50
[2624]51IF(NOT WIN32)
[2579]52  INSTALL(TARGETS network LIBRARY DESTINATION lib)
[2624]53ENDIF()
[1505]54
55# build those parts only on request.
56IF(NETWORK_TESTING_ENABLED)
57  ##### test for gamestate stuff #####
[2624]58  SET(TEST_SRC_FILES
[1735]59    ${NETWORK_SRC_FILES}
[1505]60  )
61  ADD_EXECUTABLE(networktest ${TEST_SRC_FILES})
[2624]62  TARGET_LINK_LIBRARIES(networktest
[2509]63    ${OGRE_LIBRARY}
[1505]64    network
[2581]65    ${ENET_LIBRARY}
[1505]66    ${ZLIB_LIBRARY}
67  )
68  ##### end test for gamestate stuff #####
69ENDIF(NETWORK_TESTING_ENABLED)
Note: See TracBrowser for help on using the repository browser.