Changeset 5695 for code/trunk/CMakeLists.txt
- Timestamp:
- Aug 30, 2009, 2:22:00 AM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/resource2 (added) merged: 3373-3374,5594,5597,5610-5611,5614,5624,5641,5644-5646,5650-5664,5667-5672,5682-5684,5688-5691,5694
- Property svn:mergeinfo changed
-
code/trunk/CMakeLists.txt
r3316 r5695 17 17 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18 18 # 19 19 # 20 # Author: 21 # Reto Grieder 22 # Description: 23 # Configures some basics and controls the configuration scripts 24 # 25 20 26 CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR) 21 27 … … 27 33 ENDIF() 28 34 29 30 35 PROJECT(Orxonox C CXX) 31 36 37 ################ General Config ################# 38 39 # Version info 32 40 SET(ORXONOX_VERSION_MAJOR 0) 33 41 SET(ORXONOX_VERSION_MINOR 0) … … 36 44 SET(ORXONOX_VERSION_NAME "Arcturus") 37 45 46 # Standard path suffixes 47 SET(DEFAULT_RUNTIME_PATH bin) 48 SET(DEFAULT_LIBRARY_PATH lib) 49 SET(DEFAULT_ARCHIVE_PATH lib/static) 50 SET(DEFAULT_MODULE_PATH lib/modules) 51 SET(DEFAULT_DOC_PATH doc) 52 SET(DEFAULT_DATA_PATH data) 53 SET(DEFAULT_CONFIG_PATH config) 54 SET(DEFAULT_LOG_PATH log) 38 55 39 # This sets where to look for modules (e.g. "Find*.cmake" files) 56 # Set output directories 57 SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${DEFAULT_RUNTIME_PATH}) 58 SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${DEFAULT_LIBRARY_PATH}) 59 SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${DEFAULT_ARCHIVE_PATH}) 60 SET(CMAKE_MODULE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${DEFAULT_MODULE_PATH}) 61 SET(CMAKE_DOC_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${DEFAULT_DOC_PATH}) 62 # Data directories are only inputs, no delclaration here 63 SET(CMAKE_CONFIG_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${DEFAULT_CONFIG_PATH}) 64 SET(CMAKE_LOG_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${DEFAULT_LOG_PATH}) 65 66 # Set the extension of the dynamic modules 67 SET(ORXONOX_MODULE_EXTENSION ".module") 68 69 # Sets where to find the external libraries like OgreMain.dll at runtime 70 # On Unix you should not have to change this at all. 71 # This only applies to development runs in the build tree 72 SET(RUNTIME_LIBRARY_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) 73 74 # Take care of some CMake 2.6.0 leftovers 75 MARK_AS_ADVANCED(EXECUTABLE_OUTPUT_PATH LIBRARY_OUTPUT_PATH) 76 77 # This sets where to look for CMake modules (e.g. "Find*.cmake" files) 40 78 SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) 79 80 # Set Debug build to default when not having multi-config generator like msvc 81 IF(NOT CMAKE_CONFIGURATION_TYPES) 82 IF(NOT CMAKE_BUILD_TYPE) 83 SET(CMAKE_BUILD_TYPE Debug CACHE STRING 84 "Build types are: Debug, Release, MinSizeRel, RelWithDebInfo" FORCE) 85 ENDIF() 86 MARK_AS_ADVANCED(CLEAR CMAKE_BUILD_TYPE) 87 88 MESSAGE(STATUS "*** Build type is ${CMAKE_BUILD_TYPE} ***") 89 ELSE() 90 IF(CMAKE_BUILD_TYPE) 91 SET(CMAKE_BUILD_TYPE CACHE STRING FORCE) 92 ENDIF() 93 MARK_AS_ADVANCED(CMAKE_BUILD_TYPE) 94 ENDIF() 95 96 # Enable expensive optimisations: use this for a binary release build 97 OPTION(ORXONOX_RELEASE "Enable when building restributable releases" FALSE) 98 99 ########### Subfolders and Subscripts ########### 41 100 42 101 # Library finding … … 44 103 45 104 # General build and compiler options and configurations 46 INCLUDE( BuildConfig)105 INCLUDE(CompilerConfig) 47 106 48 # Configure media directory location and installation 49 INCLUDE(Media) 107 # Configure installation paths and options 108 INCLUDE(InstallConfig) 109 110 # Configure data directory location and installation 111 ADD_SUBDIRECTORY(data) 50 112 51 113 # Create the actual project … … 55 117 ADD_SUBDIRECTORY(bin) 56 118 57 # Last but not least: Try to make doxygen target119 # Last but not least: Try to make a doc target with Doxygen 58 120 ADD_SUBDIRECTORY(doc)
Note: See TracChangeset
for help on using the changeset viewer.