| [2710] | 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 | CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR) | 
|---|
| [1505] | 21 |  | 
|---|
| [2710] | 22 | # Keep devs from using the root directory as binary directory (messes up the source tree) | 
|---|
 | 23 | IF(${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_BINARY_DIR}) | 
|---|
 | 24 |   MESSAGE(FATAL_ERROR "Please do not use the root directory as CMake output directory! | 
|---|
 | 25 |   mkdir build; cd build; cmake .. | 
|---|
 | 26 |   And you will have to clean the source directory by deleting CMakeCache.txt and the folder CMakeFiles") | 
|---|
 | 27 | ENDIF() | 
|---|
| [1505] | 28 |  | 
|---|
 | 29 |  | 
|---|
| [2710] | 30 | PROJECT(Orxonox C CXX) | 
|---|
| [1872] | 31 |  | 
|---|
| [2710] | 32 | SET(ORXONOX_VERSION_MAJOR 0) | 
|---|
 | 33 | SET(ORXONOX_VERSION_MINOR 0) | 
|---|
| [2717] | 34 | SET(ORXONOX_VERSION_PATCH 2) | 
|---|
 | 35 | SET(ORXONOX_VERSION 0.0.2) | 
|---|
| [2718] | 36 | SET(ORXONOX_VERSION_NAME "Arcturus") | 
|---|
| [1505] | 37 |  | 
|---|
 | 38 |  | 
|---|
| [2710] | 39 | # This sets where to look for modules (e.g. "Find*.cmake" files) | 
|---|
 | 40 | SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) | 
|---|
| [1505] | 41 |  | 
|---|
| [2908] | 42 | IF(UNIX AND NOT APPLE) | 
|---|
 | 43 |   INCLUDE(FlagUtilities) | 
|---|
 | 44 |   SET_CACHE(CMAKE_INSTALL_PREFIX PATH "" /usr) # default: /usr/local | 
|---|
 | 45 | ENDIF() | 
|---|
 | 46 |  | 
|---|
| [2710] | 47 | # Library finding | 
|---|
 | 48 | INCLUDE(LibraryConfig) | 
|---|
| [1505] | 49 |  | 
|---|
| [2710] | 50 | # General build and compiler options and configurations | 
|---|
 | 51 | INCLUDE(BuildConfig) | 
|---|
| [1505] | 52 |  | 
|---|
| [2710] | 53 | # Configure media directory location and installation | 
|---|
| [2720] | 54 | INCLUDE(Media) | 
|---|
| [1505] | 55 |  | 
|---|
| [2710] | 56 | # Create the actual project | 
|---|
 | 57 | ADD_SUBDIRECTORY(src) | 
|---|
| [1505] | 58 |  | 
|---|
| [2710] | 59 | # Configure the binary output directory. Do this after src! | 
|---|
 | 60 | ADD_SUBDIRECTORY(bin) | 
|---|
| [1505] | 61 |  | 
|---|
| [2710] | 62 | # Last but not least: Try to make doxygen target | 
|---|
 | 63 | ADD_SUBDIRECTORY(doc) | 
|---|