Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/libraries2/src/orxonox/CMakeLists.txt @ 5733

Last change on this file since 5733 was 5733, checked in by landauf, 15 years ago

Moved the Orxonox executable to the root of the src directory

  • Property svn:eol-style set to native
File size: 2.6 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(ORXONOX_SRC_FILES
21  Main.cc
22
23  CameraManager.cc
24  LevelManager.cc
25  PawnManager.cc
26  PlayerManager.cc
27)
28ADD_SUBDIRECTORY(interfaces)
29ADD_SUBDIRECTORY(overlays)
30ADD_SUBDIRECTORY(objects)
31ADD_SUBDIRECTORY(sound)
32
33ORXONOX_ADD_LIBRARY(orxonox
34  FIND_HEADER_FILES
35  TOLUA_FILES
36    LevelManager.h
37    objects/pickup/BaseItem.h
38    objects/pickup/PickupInventory.h
39  DEFINE_SYMBOL
40    "ORXONOX_SHARED_BUILD"
41  PCH_FILE
42    OrxonoxPrecompiledHeaders.h
43  LINK_LIBRARIES
44    ${Boost_FILESYSTEM_LIBRARY}
45    ${Boost_SYSTEM_LIBRARY} # Filesystem dependency
46    ${Boost_THREAD_LIBRARY}
47    ${Boost_DATE_TIME_LIBRARY} # Thread dependency
48    ${OGRE_LIBRARY}
49    ${OPENAL_LIBRARY}
50    ${ALUT_LIBRARY}
51    ${VORBISFILE_LIBRARY}
52    ${VORBIS_LIBRARY}
53    ${OGG_LIBRARY}
54    tinyxml++_orxonox
55    tolua++_orxonox
56    bullet_orxonox
57    util
58    core
59    network
60    tools
61  SOURCE_FILES ${ORXONOX_SRC_FILES}
62)
63
64
65# When using Visual Studio we want to use the output directory as working
66# directory and we also want to specify where the external dlls
67# (lua, ogre, etc.) are. The problem hereby is that these information cannot
68# be specified in CMake because they are not stored in the actual project file.
69# This workaround will create a configured *.vcproj.user file that holds the
70# right values. When starting the solution for the first time,
71# these get written to the *vcproj.yourPCname.yourname.user
72IF(MSVC)
73  IF(CMAKE_CL_64)
74    SET(MSVC_PLATFORM "x64")
75  ELSE()
76    SET(MSVC_PLATFORM "Win32")
77  ENDIF()
78  STRING(REGEX REPLACE "^Visual Studio ([0-9][0-9]?) .*$" "\\1"
79         VISUAL_STUDIO_VERSION_SIMPLE "${CMAKE_GENERATOR}")
80  CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/orxonox-main.vcproj.user.in" "${CMAKE_CURRENT_BINARY_DIR}/orxonox-main.vcproj.user")
81ENDIF(MSVC)
Note: See TracBrowser for help on using the repository browser.