Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Trying to get around in-source build left overs.

  • Property svn:eol-style set to native
File size: 1.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 
20# Keep devs from using the root directory as binary directory (messes up the source tree)
21IF(${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_BINARY_DIR})
22  MESSAGE(FATAL_ERROR "Do not use the root directory as CMake output directory! mkdir build; cd build; cmake ..")
23ENDIF()
24
25PROJECT(Orxonox C CXX)
26
27CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR)
28
29SET(ORXONOX_VERSION_MAJOR 0)
30SET(ORXONOX_VERSION_MINOR 0)
31SET(ORXONOX_VERSION_PATCH 3)
32SET(ORXONOX_VERSION 0.0.3)
33SET(ORXONOX_VERSION_NAME "Castor")
34
35# This sets where to look for modules (e.g. "Find*.cmake" files)
36SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
37
38# Library Config
39INCLUDE(LibraryConfig)
40
41# Build Config
42INCLUDE(BuildConfig)
43
44# Configure media directory location and installation
45ADD_SUBDIRECTORY(media)
46
47# Creates the actual project
48ADD_SUBDIRECTORY(src)
49
50# Configure the binary output directory
51ADD_SUBDIRECTORY(bin)
52
53# Last but not least: Try to make doxygen target
54ADD_SUBDIRECTORY(doc)
Note: See TracBrowser for help on using the repository browser.