Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/core7/src/libraries/core/CMakeLists.txt @ 10464

Last change on this file since 10464 was 10413, checked in by landauf, 9 years ago

use the generic UpdateListener interface to receive calls to preUpdate() and postUpdate() instead of limiting this functionality to singletons.

  • Property svn:eol-style set to native
File size: 2.8 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
22#BUILD_UNIT CoreStableBuildUnit.cc
23  ClassTreeMask.cc
24  DynLib.cc
25  DynLibManager.cc
26  Event.cc
27  Game.cc
28  GameMode.cc
29  GameState.cc
30  Language.cc
31  Loader.cc
32  LuaState.cc
33  Namespace.cc
34  NamespaceNode.cc
35  Template.cc
36  UpdateListener.cc
37  ViewportEventListener.cc
38  WindowEventListener.cc
39  XMLNameListener.cc
40  XMLPort.cc
41#END_BUILD_UNIT
42
43  BaseObject.cc
44  Core.cc
45
46BUILD_UNIT OgreBuildUnit.cc
47  GraphicsManager.cc
48  GUIManager.cc
49  Resource.cc
50END_BUILD_UNIT
51
52BUILD_UNIT FilesystemBuildUnit.cc
53  command/ArgumentCompletionFunctions.cc
54  config/ConfigFile.cc
55  PathConfig.cc
56END_BUILD_UNIT
57
58BUILD_UNIT ThreadBuildUnit.cc
59  command/TclThreadManager.cc
60  Thread.cc
61  ThreadPool.cc
62END_BUILD_UNIT
63)
64
65ADD_SUBDIRECTORY(class)
66ADD_SUBDIRECTORY(command)
67ADD_SUBDIRECTORY(commandline)
68ADD_SUBDIRECTORY(config)
69ADD_SUBDIRECTORY(input)
70ADD_SUBDIRECTORY(module)
71ADD_SUBDIRECTORY(object)
72ADD_SUBDIRECTORY(singleton)
73
74#Add the icon (for the renderwindow)
75IF(WIN32)
76  List(APPEND CORE_SRC_FILES ${CMAKE_SOURCE_DIR}/contrib/winresource.rc)
77ENDIF()
78
79ORXONOX_ADD_LIBRARY(core
80  FIND_HEADER_FILES
81  TOLUA_FILES
82    command/CommandExecutor.h
83    config/SettingsConfigFile.h
84    Game.h
85    GameMode.h
86    GraphicsManager.h
87    GUIManager.h
88    Loader.h
89    LuaState.h
90    PathConfig.h
91    input/InputManager.h
92    input/KeyBinder.h
93    input/KeyBinderManager.h
94    ../util/output/OutputDefinitions.h
95  PCH_FILE
96    CorePrecompiledHeaders.h
97  LINK_LIBRARIES
98    ${OGRE_LIBRARY}
99    ${Boost_FILESYSTEM_LIBRARY}
100    ${Boost_SYSTEM_LIBRARY} # Filesystem dependency
101    ${Boost_THREAD_LIBRARY}
102    ${Boost_DATE_TIME_LIBRARY} # Thread dependency
103    ${CEGUI_LIBRARY}
104    ${CEGUILUA_LIBRARY}
105    ${CEGUI_TOLUA_LIBRARY}
106    ${CEGUI_OGRE_RENDERER_LIBRARY}
107    ${LUA5.1_LIBRARY}
108    cpptcl_orxonox
109    ois_orxonox
110    tinyxml_orxonox
111    util
112  LINK_LIBS_UNIX
113    dl
114    pthread
115  SOURCE_FILES
116    ${CORE_SRC_FILES}
117)
Note: See TracBrowser for help on using the repository browser.