Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/CMakeLists.txt @ 2641

Last change on this file since 2641 was 2640, checked in by rgrieder, 16 years ago
  • Corrected version info
  • Bugfix: GCC 3 warning workaround was active for other compilers than GCC
  • Bugfix: Tolua bind files for debug and release configurations had the same path in MSVC. Using separate paths now to avoid reompiling when changing the configuration.
  • Property svn:eol-style set to native
File size: 1.8 KB
RevLine 
[2626]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 
[2599]20PROJECT(Orxonox C CXX)
[1505]21
[2509]22CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR)
[1505]23
[2599]24SET(ORXONOX_VERSION_MAJOR 0)
[2640]25SET(ORXONOX_VERSION_MINOR 0)
26SET(ORXONOX_VERSION_PATCH 3)
27SET(ORXONOX_VERSION 0.0.3)
28SET(ORXONOX_VERSION_NAME "Castor")
[2582]29
30# Keep devs from using the root directory as binary directory (messes up the source tree)
[2574]31IF(${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_BINARY_DIR})
[2582]32  MESSAGE(FATAL_ERROR "Do not use the root directory as CMake output directory! mkdir build; cd build; cmake ..")
[2624]33ENDIF()
[2574]34
[1776]35# This sets where to look for modules (e.g. "Find*.cmake" files)
[2599]36SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
[1505]37
[2612]38# Library Config
39INCLUDE(LibraryConfig)
[2582]40
[2612]41# Build Config
42INCLUDE(BuildConfig)
[2582]43
[2612]44# Creates the actual project
[1505]45ADD_SUBDIRECTORY(src)
[2599]46
47# Configure the binary output directory
[2597]48ADD_SUBDIRECTORY(bin-config)
[2633]49
50# Last but not least: Try to make doxygen target
51INCLUDE(DocumentationTarget)
Note: See TracBrowser for help on using the repository browser.