Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Removed about a thousand lines of warnings when compiling with GCC 3. It's not such a clean workaround but better than polluted output.

  • Property svn:eol-style set to native
File size: 2.4 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(CORE_SRC_FILES
21  Clock.cc
22  ConfigFileManager.cc
23  ConfigValueContainer.cc
24  Core.cc
25  Event.cc
26  GameState.cc
27  Language.cc
28  LuaBind.cc
29  ObjectListBase.cc
30  OrxonoxClass.cc
31  RootGameState.cc
32
33  # command
34  ArgumentCompletionFunctions.cc
35  CommandEvaluation.cc
36  CommandExecutor.cc
37  CommandLine.cc
38  ConsoleCommand.cc
39  ConsoleCommandCompilation.cc
40  Executor.cc
41
42  # hierarchy
43  Factory.cc
44  Identifier.cc
45  MetaObjectList.cc
46
47  # level
48  BaseObject.cc
49  ClassTreeMask.cc
50  Loader.cc
51  Namespace.cc
52  NamespaceNode.cc
53  Template.cc
54  XMLPort.cc
55  XMLNameListener.cc
56
57  # shell
58  IRC.cc
59  Shell.cc
60  TclBind.cc
61  TclThreadManager.cc
62)
63ADD_SUBDIRECTORY(input)
64GET_ALL_HEADER_FILES(CORE_HDR_FILES)
65SET(CORE_FILES ${CORE_SRC_FILES} ${CORE_HDR_FILES})
66
67GENERATE_SOURCE_GROUPS(${CORE_FILES})
68GENERATE_TOLUA_BINDINGS(Core CORE_FILES INPUTFILES LuaBind.h CommandExecutor.h)
69
70IF(NOT GCC_SYSTEM_HEADER_SUPPORT)
71  # Get around displaying a few hundred lines of warning code
72  SET_SOURCE_FILES_PROPERTIES(ArgumentCompletionFunctions.cc PROPERTIES COMPILE_FLAGS "-w")
73ENDIF()
74
75ADD_LIBRARY(core SHARED ${CORE_FILES})
76
77SET_TARGET_PROPERTIES(core PROPERTIES DEFINE_SYMBOL "CORE_SHARED_BUILD")
78TARGET_LINK_LIBRARIES(core
79  ${OGRE_LIBRARY}
80  ${Boost_THREAD_LIBRARY}
81  ${Boost_FILESYSTEM_LIBRARY}
82  ${Boost_SYSTEM_LIBRARY}    # MSVC only
83  ${Boost_DATE_TIME_LIBRARY} # MSVC only
84  ${LUA_LIBRARIES}
85  cpptcl_orxonox
86  ois_orxonox
87  tinyxml++_orxonox
88  tolua++_orxonox
89  util
90)
91
92ORXONOX_INSTALL(core)
Note: See TracBrowser for help on using the repository browser.