Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/src/core/CMakeLists.txt @ 2640

Last change on this file since 2640 was 2640, checked in by rgrieder, 15 years ago
  • Corrected version info
  • Bugfix: GCC 3 warning workaround was active for other compilers than GCC
  • Bugfix: Tolua bind files for debug and release configurations had the same path in MSVC. Using separate paths now to avoid reompiling when changing the configuration.
  • Property svn:eol-style set to native
File size: 2.4 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(CORE_SRC_FILES
[1755]21  Clock.cc
[1505]22  ConfigFileManager.cc
23  ConfigValueContainer.cc
[1535]24  Core.cc
[2087]25  Event.cc
[1755]26  GameState.cc
[1543]27  Language.cc
[2087]28  LuaBind.cc
[1747]29  ObjectListBase.cc
[1543]30  OrxonoxClass.cc
[1755]31  RootGameState.cc
[1543]32
33  # command
34  ArgumentCompletionFunctions.cc
35  CommandEvaluation.cc
[1505]36  CommandExecutor.cc
[1755]37  CommandLine.cc
[1505]38  ConsoleCommand.cc
39  ConsoleCommandCompilation.cc
[1543]40  Executor.cc
41
42  # hierarchy
43  Factory.cc
44  Identifier.cc
45  MetaObjectList.cc
46
47  # level
48  BaseObject.cc
49  ClassTreeMask.cc
[1505]50  Loader.cc
51  Namespace.cc
52  NamespaceNode.cc
[2087]53  Template.cc
[1543]54  XMLPort.cc
[2087]55  XMLNameListener.cc
[1543]56
57  # shell
58  IRC.cc
59  Shell.cc
[1505]60  TclBind.cc
61  TclThreadManager.cc
62)
[2621]63ADD_SUBDIRECTORY(input)
64GET_ALL_HEADER_FILES(CORE_HDR_FILES)
65SET(CORE_FILES ${CORE_SRC_FILES} ${CORE_HDR_FILES})
[1505]66
[2621]67GENERATE_SOURCE_GROUPS(${CORE_FILES})
68GENERATE_TOLUA_BINDINGS(Core CORE_FILES INPUTFILES LuaBind.h CommandExecutor.h)
[2131]69
[2640]70IF(GCC_NO_SYSTEM_HEADER_SUPPORT)
[2638]71  # Get around displaying a few hundred lines of warning code
72  SET_SOURCE_FILES_PROPERTIES(ArgumentCompletionFunctions.cc PROPERTIES COMPILE_FLAGS "-w")
73ENDIF()
74
[2621]75ADD_LIBRARY(core SHARED ${CORE_FILES})
[2518]76
[2588]77SET_TARGET_PROPERTIES(core PROPERTIES DEFINE_SYMBOL "CORE_SHARED_BUILD")
[1505]78TARGET_LINK_LIBRARIES(core
[2509]79  ${OGRE_LIBRARY}
80  ${Boost_THREAD_LIBRARY}
81  ${Boost_FILESYSTEM_LIBRARY}
[2630]82  ${Boost_SYSTEM_LIBRARY}    # MSVC only
83  ${Boost_DATE_TIME_LIBRARY} # MSVC only
[2509]84  ${LUA_LIBRARIES}
[1810]85  cpptcl_orxonox
[1555]86  ois_orxonox
[2621]87  tinyxml++_orxonox
88  tolua++_orxonox
[1505]89  util
90)
[2510]91
[2634]92ORXONOX_INSTALL(core)
Note: See TracBrowser for help on using the repository browser.