Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/pch/src/core/CMakeLists.txt @ 3143

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

Added new CMake functions: ORXONOX_ADD_LIBRARY and ORXONOX_ADD_EXECUTABLE.
They replace the current functions ADD_LIBRARY and ADD_EXECUTABLE to allow for clearer and easier declaration.
And it allows for GCC precompiled header file support in the first place ;)
More information can be found in TargetUtilities.cmake

  • 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(CORE_SRC_FILES
21  Clock.cc
22  ConfigFileManager.cc
23  ConfigValueContainer.cc
24  Core.cc
25  Event.cc
26  Game.cc
27  GameMode.cc
28  GameState.cc
29  Language.cc
30  LuaBind.cc
31  ObjectListBase.cc
32  OrxonoxClass.cc
33
34  # command
35  ArgumentCompletionFunctions.cc
36  CommandEvaluation.cc
37  CommandExecutor.cc
38  CommandLine.cc
39  ConsoleCommand.cc
40  ConsoleCommandCompilation.cc
41  Executor.cc
42
43  # hierarchy
44  Factory.cc
45  Identifier.cc
46  MetaObjectList.cc
47
48  # level
49  BaseObject.cc
50  ClassTreeMask.cc
51  Loader.cc
52  Namespace.cc
53  NamespaceNode.cc
54  Template.cc
55  XMLPort.cc
56  XMLNameListener.cc
57
58  # shell
59  IRC.cc
60  Shell.cc
61  TclBind.cc
62  TclThreadManager.cc
63)
64ADD_SUBDIRECTORY(input)
65
66ORXONOX_ADD_LIBRARY(core
67  FIND_HEADER_FILES
68  TOLUA_FILES
69    CommandExecutor.h
70    Game.h
71    LuaBind.h
72  DEFINE_SYMBOL
73    "CORE_SHARED_BUILD"
74  LINK_LIBRARIES
75    ${OGRE_LIBRARY}
76    ${Boost_THREAD_LIBRARY}
77    ${Boost_FILESYSTEM_LIBRARY}
78    ${Boost_SYSTEM_LIBRARY}
79    ${Boost_DATE_TIME_LIBRARY} # MSVC only
80    ${LUA_LIBRARIES}
81    cpptcl_orxonox
82    ois_orxonox
83    tinyxml++_orxonox
84    tolua++_orxonox
85    util
86  SOURCE_FILES
87    ${CORE_SRC_FILES}
88)
Note: See TracBrowser for help on using the repository browser.