[2664] | 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 | PROJECT(Orxonox C CXX) |
---|
[1505] | 21 | |
---|
[2664] | 22 | CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR) |
---|
[1505] | 23 | |
---|
[2664] | 24 | SET(ORXONOX_VERSION_MAJOR 0) |
---|
| 25 | SET(ORXONOX_VERSION_MINOR 0) |
---|
| 26 | SET(ORXONOX_VERSION_PATCH 3) |
---|
| 27 | SET(ORXONOX_VERSION 0.0.3) |
---|
| 28 | SET(ORXONOX_VERSION_NAME "Castor") |
---|
[1505] | 29 | |
---|
[2683] | 30 | # Keep devs from using the root directory as binary directory (messes up the source tree) |
---|
| 31 | IF(${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") |
---|
| 35 | ENDIF() |
---|
| 36 | |
---|
[1776] | 37 | # This sets where to look for modules (e.g. "Find*.cmake" files) |
---|
[2664] | 38 | SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) |
---|
[1505] | 39 | |
---|
[2664] | 40 | # Library Config |
---|
| 41 | INCLUDE(LibraryConfig) |
---|
[1505] | 42 | |
---|
[2664] | 43 | # Build Config |
---|
| 44 | INCLUDE(BuildConfig) |
---|
[1505] | 45 | |
---|
[2664] | 46 | # Configure media directory location and installation |
---|
| 47 | ADD_SUBDIRECTORY(media) |
---|
[1505] | 48 | |
---|
[2685] | 49 | ADD_SUBDIRECTORY(config) |
---|
| 50 | ADD_SUBDIRECTORY(log) |
---|
| 51 | |
---|
[2664] | 52 | # Creates the actual project |
---|
| 53 | ADD_SUBDIRECTORY(src) |
---|
[1505] | 54 | |
---|
[2664] | 55 | # Configure the binary output directory |
---|
| 56 | ADD_SUBDIRECTORY(bin) |
---|
[1505] | 57 | |
---|
[2664] | 58 | # Last but not least: Try to make doxygen target |
---|
| 59 | ADD_SUBDIRECTORY(doc) |
---|