Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem3/CMakeLists.txt @ 2685

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

Fixed install target:

  • log and config file go a to separate folder each
  • The SignalHandler crash log is now "orxonox_crash.log" to avoid opening the file twice which might result in problems
  • moved tcl scripts to media/tcl8.#/ as a temporary solution. I've also created a ticket to fix this.
  • UPDATE YOUR MEDIA REPOSITORY
  • orxonox.log pre-main gets written to either %TEMP% (windows) or /tmp (Unix) and when the path was set, the content is copied.
  • removed Settings class and moved media path to Core
  • media, log and config path are now all in Core where only the media path can be configured via ini file or command line
  • Core::isDevBuild() tells whether we are running in the build or the installation directory (determined by the presence of "orxonox_dev_build.kepp_me" in the binary dir)
  • renamed Settings::getDataPath to Core::getMediaPath
  • 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 
20PROJECT(Orxonox C CXX)
21
22CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR)
23
24SET(ORXONOX_VERSION_MAJOR 0)
25SET(ORXONOX_VERSION_MINOR 0)
26SET(ORXONOX_VERSION_PATCH 3)
27SET(ORXONOX_VERSION 0.0.3)
28SET(ORXONOX_VERSION_NAME "Castor")
29
30# Keep devs from using the root directory as binary directory (messes up the source tree)
31IF(${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_BINARY_DIR})
32  MESSAGE(FATAL_ERROR "Please do not use the root directory as CMake output directory!
33  mkdir build; cd build; cmake ..
34  And you will have to clean the source directory by deleting CMakeCache.txt and the folder CMakeFiles")
35ENDIF()
36
37# This sets where to look for modules (e.g. "Find*.cmake" files)
38SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
39
40# Library Config
41INCLUDE(LibraryConfig)
42
43# Build Config
44INCLUDE(BuildConfig)
45
46# Configure media directory location and installation
47ADD_SUBDIRECTORY(media)
48
49ADD_SUBDIRECTORY(config)
50ADD_SUBDIRECTORY(log)
51
52# Creates the actual project
53ADD_SUBDIRECTORY(src)
54
55# Configure the binary output directory
56ADD_SUBDIRECTORY(bin)
57
58# Last but not least: Try to make doxygen target
59ADD_SUBDIRECTORY(doc)
Note: See TracBrowser for help on using the repository browser.