Changeset 8351 for code/trunk/CMakeLists.txt
- Timestamp:
- Apr 28, 2011, 7:15:14 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/CMakeLists.txt
r7383 r8351 24 24 # 25 25 26 # Defined LINUX 27 IF(UNIX AND NOT APPLE) 28 SET(LINUX TRUE) 29 ENDIF() 30 26 31 IF(WIN32) 27 CMAKE_MINIMUM_REQUIRED(VERSION 2.6.3 FATAL_ERROR) 32 IF(MSVC10) 33 CMAKE_MINIMUM_REQUIRED(VERSION 2.8.3 FATAL_ERROR) 34 ELSE() 35 CMAKE_MINIMUM_REQUIRED(VERSION 2.6.3 FATAL_ERROR) 36 ENDIF() 28 37 ELSE() 29 CMAKE_MINIMUM_REQUIRED(VERSION 2.6 38 CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR) 30 39 ENDIF() 31 40 … … 57 66 SET(DEFAULT_CONFIG_PATH config) 58 67 SET(DEFAULT_LOG_PATH log) 68 SET(DEFAULT_BUNDLE_PATH bundle) 59 69 60 70 # Set output directories … … 98 108 ENDIF() 99 109 110 # Debug builds can not be installed 111 INSTALL(SCRIPT cmake/InstallCheck.cmake) 112 100 113 # Enable expensive optimisations: use this for a binary release build 101 114 OPTION(ORXONOX_RELEASE "Enable when building restributable releases" FALSE) 102 115 116 IF(APPLE) 117 # Set 10.5 as the base SDK by default 118 SET(XCODE_ATTRIBUTE_SDKROOT macosx10.5) 119 120 # 10.6 sets x86_64 as the default architecture. 121 # Because Carbon isn't supported on 64-bit and we still need it, force the architectures to ppc and i386 122 IF(CMAKE_OSX_ARCHITECTURES MATCHES "x86_64") 123 SET(CMAKE_OSX_ARCHITECTURES "i386") 124 ENDIF() 125 IF(CMAKE_OSX_ARCHITECTURES MATCHES "ppc64") 126 SET(CMAKE_OSX_ARCHITECTURES "ppc") 127 ENDIF() 128 IF(NOT CMAKE_OSX_ARCHITECTURES) 129 SET(CMAKE_OSX_ARCHITECTURES "i386") 130 ENDIF() 131 ENDIF() 132 103 133 ########### Subfolders and Subscripts ########### 134 135 # General build and compiler options and configurations 136 INCLUDE(CompilerConfig) 104 137 105 138 # Library finding 106 139 INCLUDE(LibraryConfig) 107 108 # General build and compiler options and configurations109 INCLUDE(CompilerConfig)110 140 111 141 # Configure installation paths and options … … 121 151 ADD_SUBDIRECTORY(bin) 122 152 153 # System specific files (mostly for installation) 154 ADD_SUBDIRECTORY(contrib) 155 123 156 # Last but not least: Try to make a doc target with Doxygen 124 157 ADD_SUBDIRECTORY(doc) 158 159 ########### CPack Packaging ########### 160 161 # Currently only testing on Apple 162 #IF(APPLE) 163 # INCLUDE(BundleConfig) 164 #ENDIF(APPLE)
Note: See TracChangeset
for help on using the changeset viewer.