Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Replaced most of the ELSE(…) and ENDIF(…) with ELSE() and ENDIF(). Kept the shorter and the spreaded ones for better clarity since that's what it originally was thought for. But I can really pollute the code when having long conditions and lots of IFs.

  • Property svn:eol-style set to native
File size: 784 bytes
Line 
1PROJECT(Orxonox C CXX)
2
3CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR)
4
5SET(ORXONOX_VERSION_MAJOR 0)
6SET(ORXONOX_VERSION_MINOR 1)
7SET(ORXONOX_VERSION_PATCH 0)
8SET(ORXONOX_VERSION 0.1.0)
9
10# Keep devs from using the root directory as binary directory (messes up the source tree)
11IF(${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_BINARY_DIR})
12  MESSAGE(FATAL_ERROR "Do not use the root directory as CMake output directory! mkdir build; cd build; cmake ..")
13ENDIF()
14
15# This sets where to look for modules (e.g. "Find*.cmake" files)
16SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
17
18# Library Config
19INCLUDE(LibraryConfig)
20
21# Build Config
22INCLUDE(BuildConfig)
23
24# Creates the actual project
25ADD_SUBDIRECTORY(src)
26
27# Configure the binary output directory
28ADD_SUBDIRECTORY(bin-config)
Note: See TracBrowser for help on using the repository browser.