Changeset 2673
- Timestamp:
- Feb 16, 2009, 4:15:52 PM (16 years ago)
- Location:
- code/branches/buildsystem3
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem3/cmake/BuildConfig.cmake
r2664 r2673 25 25 # 26 26 27 ################ Misc Options ###################27 ################# Misc Options ################## 28 28 29 29 # Set binary output directories … … 31 31 SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) 32 32 SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) 33 34 # Take care of some CMake 2.6.0 leftovers 35 MARK_AS_ADVANCED(EXECUTABLE_OUTPUT_PATH LIBRARY_OUTPUT_PATH) 33 36 34 37 # Sets where to find the external libraries like OgreMain.dll at runtime … … 54 57 ENDIF() 55 58 56 OPTION(EXTRA_WARNINGS "Enable some extra warnings (heavily pollutes the output)") 59 OPTION(EXTRA_COMPILER_WARNINGS "Enable some extra warnings (heavily pollutes the output)") 60 61 62 ################# OGRE Plugins ################## 57 63 58 64 # More plugins: Plugin_BSPSceneManager, Plugin_OctreeSceneManager 59 # Render systems may be optional, but at least one has to be found in FindOgre 60 SET(OGRE_PLUGINS_INT RenderSystem_GL RenderSystem_Direct3D9 Plugin_ParticleFX) 65 SET(OGRE_PLUGINS_INT Plugin_ParticleFX) 61 66 IF(WIN32) 62 67 # CG program manager is probably DirectX related (not available under unix) … … 72 77 73 78 74 ############## Compiler Config ##################79 ################ Compiler Config ################ 75 80 76 81 INCLUDE(FlagUtilities) … … 85 90 ENDIF() 86 91 87 SET( BUILD_CONFIG_USER_SCRIPT"" CACHE FILEPATH92 SET(USER_SCRIPT_BUILD_CONFIG "" CACHE FILEPATH 88 93 "Specify a CMake script if you wish to write your own build config. 89 94 See BuildConfigGCC.cmake or BuildConfigMSVC.cmake for examples.") 90 IF( BUILD_CONFIG_USER_SCRIPT)91 IF(EXISTS ${CMAKE_MODULE_PATH}/${ BUILD_CONFIG_USER_SCRIPT}.cmake)92 INCLUDE(${ BUILD_CONFIG_USER_SCRIPT})93 ELSEIF(EXISTS ${ BUILD_CONFIG_USER_SCRIPT})94 INCLUDE(${ BUILD_CONFIG_USER_SCRIPT})95 ELSEIF(EXISTS ${CMAKE_MODULE_PATH}/${ BUILD_CONFIG_USER_SCRIPT})96 INCLUDE(${CMAKE_MODULE_PATH}/${ BUILD_CONFIG_USER_SCRIPT})95 IF(USER_SCRIPT_BUILD_CONFIG) 96 IF(EXISTS ${CMAKE_MODULE_PATH}/${USER_SCRIPT_BUILD_CONFIG}.cmake) 97 INCLUDE(${USER_SCRIPT_BUILD_CONFIG}) 98 ELSEIF(EXISTS ${USER_SCRIPT_BUILD_CONFIG}) 99 INCLUDE(${USER_SCRIPT_BUILD_CONFIG}) 100 ELSEIF(EXISTS ${CMAKE_MODULE_PATH}/${USER_SCRIPT_BUILD_CONFIG}) 101 INCLUDE(${CMAKE_MODULE_PATH}/${USER_SCRIPT_BUILD_CONFIG}) 97 102 ENDIF() 98 ENDIF( BUILD_CONFIG_USER_SCRIPT)103 ENDIF(USER_SCRIPT_BUILD_CONFIG) 99 104 100 105 101 ################ Test options ###################106 ################# Test options ################## 102 107 103 OPTION( ENABLE_TESTS"Enable build tests.")104 IF( ENABLE_TESTS)108 OPTION(TESTING_ENABLE "Enable build tests.") 109 IF(TESTING_ENABLE) 105 110 ENABLE_TESTING() 106 ENDIF( ENABLE_TESTS)111 ENDIF(TESTING_ENABLE) 107 112 108 OPTION(NETWORK_TESTING_ENABLED "Build network testing tools: i.e. chatclient chatserver and alike.") 109 OPTION(NETWORKTRAFFIC_TESTING_ENABLED "Build dummyserver4 and dummyclient4.") 110 111 112 ############ Installation Settings ############## 113 OPTION(NETWORK_TESTING_ENABLED "Build network testing tools: i.e. chatclient chatserver and alike.")OPTION(NETWORKTRAFFIC_TESTING_ENABLED "Build dummyserver4 and dummyclient4.") 114 ############# Installation Settings ############# 113 115 114 116 IF(UNIX) … … 133 135 134 136 135 ################# Unix rpath ####################137 ################## Unix rpath ################### 136 138 137 139 # use, i.e. don't skip the full RPATH for the build tree … … 150 152 151 153 152 ####### Static/Dynamic linking defines ##########154 ######## Static/Dynamic linking defines ######### 153 155 154 156 # Disable Boost auto linking completely -
code/branches/buildsystem3/cmake/BuildConfigGCC.cmake
r2664 r2673 57 57 58 58 # Increase warning level if requested 59 IF(EXTRA_ WARNINGS)59 IF(EXTRA_COMPILER_WARNINGS) 60 60 REMOVE_COMPILER_FLAGS("-Wall" CACHE) 61 61 ADD_COMPILER_FLAGS("-Wextra --Wno-unused-parameter" CACHE) -
code/branches/buildsystem3/cmake/BuildConfigMSVC.cmake
r2668 r2673 26 26 ######################## Options ######################## 27 27 28 OPTION( ACTIVATE_VISUAL_LEAK_DETECTOR"Memory leak detector" FALSE)28 OPTION(VISUAL_LEAK_DETECTOR_ENABLE "Memory leak detector" FALSE) 29 29 30 30 #################### Compiler Flags ##################### … … 65 65 66 66 # Increase warning level if requested 67 IF(EXTRA_ WARNINGS)67 IF(EXTRA_COMPILER_WARNINGS) 68 68 REMOVE_COMPILER_FLAGS("-W1 -W2 -W3" CACHE) 69 69 ADD_COMPILER_FLAGS ("-W4" CACHE) -
code/branches/buildsystem3/cmake/CheckOGREPlugins.cmake
r2664 r2673 31 31 # OGRE_PLUGINS_DEBUG Names of the debug plugins without extension 32 32 # OGRE_PLUGINS_RELEASE Names of the release plugins without ext. 33 # Note: 34 # You must not specify render systems as input, but the ones found will be 35 # present in the output variables. 33 36 # 34 37 … … 44 47 SET(CMAKE_FIND_LIBRARY_PREFIXES "") 45 48 49 SET(OGRE_RENDER_SYSTEMS RenderSystem_GL RenderSystem_Direct3D9) 46 50 SET(OGRE_RENDER_SYSTEM_FOUND FALSE) 47 FOREACH(_plugin ${OGRE_PLUGINS} )51 FOREACH(_plugin ${OGRE_PLUGINS} ${OGRE_RENDER_SYSTEMS}) 48 52 FIND_LIBRARY(OGRE_PLUGIN_${_plugin}_OPTIMIZED 49 53 NAMES ${_plugin} -
code/branches/buildsystem3/cmake/LibraryConfig.cmake
r2664 r2673 39 39 SET(_option_msg "Set this to true to use precompiled dependecy archives") 40 40 IF(WIN32) 41 OPTION( USE_DEPENDENCY_PACKAGE "${_option_msg}" ON)41 OPTION(DEPENDENCY_PACKAGE_ENABLE "${_option_msg}" ON) 42 42 ELSE(WIN32) 43 OPTION( USE_DEPENDENCY_PACKAGE "${_option_msg}" FALSE)43 OPTION(DEPENDENCY_PACKAGE_ENABLE "${_option_msg}" FALSE) 44 44 ENDIF(WIN32) 45 45 … … 48 48 INCLUDE(LibraryConfigApple) 49 49 50 IF(USE_DEPENDENCY_PACKAGE) 51 FIND_PATH(DEPENDENCY_DIR 50 IF(DEPENDENCY_PACKAGE_ENABLE) 51 GET_FILENAME_COMPONENT(_dep_dir_1 ${CMAKE_SOURCE_DIR}/../dependencies ABSOLUTE) 52 GET_FILENAME_COMPONENT(_dep_dir_2 ${CMAKE_SOURCE_DIR}/../lib_dist/dependencies ABSOLUTE) 53 FIND_PATH(DEPENDENCY_PACKAGE_DIR 52 54 NAMES PackageConfigMSVC.cmake PackageConfigMinGW.cmake 53 55 PATHS 54 56 ${CMAKE_SOURCE_DIR}/dependencies 55 ${ CMAKE_SOURCE_DIR}/../dependencies56 ${ CMAKE_SOURCE_DIR}/../lib_dist/dependencies57 ${_dep_dir_1} 58 ${_dep_dir_2} 57 59 ) 58 IF(NOT DEPENDENCY_ DIR)60 IF(NOT DEPENDENCY_PACKAGE_DIR) 59 61 MESSAGE(STATUS "Warning: Could not find dependency directory." 60 62 "Disable LIBRARY_USE_PACKAGE if you have none intalled.") … … 62 64 FILE(GLOB _package_config_files "${DEPENDENCY_DIR}/PackageConfig*.cmake") 63 65 FOREACH(_file ${_package_config_files}) 64 INCLUDE(${_file}) 65 ENDFOREACH(_file) 66 67 # On Windows, DLLs have to be in the executable folder 66 INCLUDE(${_file}) ENDFOREACH(_file) 67 # On Windows, DLLs have to be in the executable folder, install them 68 68 IF(DEP_BINARY_DIR AND WIN32) 69 69 # When installing a debug version, we really can't know which libraries … … 85 85 ) 86 86 ENDIF(DEP_BINARY_DIR AND WIN32) 87 ENDIF(NOT DEPENDENCY_ DIR)88 ENDIF( USE_DEPENDENCY_PACKAGE)87 ENDIF(NOT DEPENDENCY_PACKAGE_DIR) 88 ENDIF(DEPENDENCY_PACKAGE_ENABLE) 89 89 90 90 # User script 91 SET( LIBRARY_CONFIG_USER_SCRIPT"" CACHE FILEPATH91 SET(USER_SCRIPT_LIBRARY_CONFIG "" CACHE FILEPATH 92 92 "Specify a CMake script if you wish to write your own library path config. 93 93 See LibraryConfigTardis.cmake or LibraryConfigMinGW.cmake for examples.") 94 IF( LIBRARY_CONFIG_USER_SCRIPT)95 IF(EXISTS ${CMAKE_MODULE_PATH}/${ LIBRARY_CONFIG_USER_SCRIPT}.cmake)96 INCLUDE(${ LIBRARY_CONFIG_USER_SCRIPT})97 ELSEIF(EXISTS ${ LIBRARY_CONFIG_USER_SCRIPT})98 INCLUDE(${ LIBRARY_CONFIG_USER_SCRIPT})99 ELSEIF(EXISTS ${CMAKE_MODULE_PATH}/${ LIBRARY_CONFIG_USER_SCRIPT})100 INCLUDE(${CMAKE_MODULE_PATH}/${ LIBRARY_CONFIG_USER_SCRIPT})94 IF(USER_SCRIPT_LIBRARY_CONFIG) 95 IF(EXISTS ${CMAKE_MODULE_PATH}/${USER_SCRIPT_LIBRARY_CONFIG}.cmake) 96 INCLUDE(${USER_SCRIPT_LIBRARY_CONFIG}) 97 ELSEIF(EXISTS ${USER_SCRIPT_LIBRARY_CONFIG}) 98 INCLUDE(${USER_SCRIPT_LIBRARY_CONFIG}) 99 ELSEIF(EXISTS ${CMAKE_MODULE_PATH}/${USER_SCRIPT_LIBRARY_CONFIG}) 100 INCLUDE(${CMAKE_MODULE_PATH}/${USER_SCRIPT_LIBRARY_CONFIG}) 101 101 ENDIF() 102 ENDIF( LIBRARY_CONFIG_USER_SCRIPT)102 ENDIF(USER_SCRIPT_LIBRARY_CONFIG) 103 103 104 104 … … 180 180 FIND_PACKAGE(Boost 1.35 REQUIRED system) 181 181 ENDIF() 182 # No auto linking, so this option is useless anyway 183 MARK_AS_ADVANCED(Boost_LIB_DIAGNOSTIC_DEFINITIONS) 182 184 183 185 ####### Static/Dynamic linking options ########## -
code/branches/buildsystem3/media/CMakeLists.txt
r2670 r2673 25 25 26 26 # Specify media directory 27 GET_FILENAME_COMPONENT(_search_path_1 ${CMAKE_SOURCE_DIR}/../media ABSOLUTE) 27 28 FIND_PATH(ORXONOX_MEDIA_DIRECTORY resources.cfg 28 29 PATHS 29 30 ${CMAKE_CURRENT_SOURCE_DIR} 30 ${ CMAKE_SOURCE_DIR}/../media31 ${_search_path_1} 31 32 $ENV{ORXONOX_MEDIA_DIR} 32 33 ) -
code/branches/buildsystem3/src/OrxonoxConfig.h.in
r2664 r2673 169 169 170 170 /* Visual Leak Detector looks for memory leaks */ 171 #cmakedefine ACTIVATE_VISUAL_LEAK_DETECTOR172 #ifdef ACTIVATE_VISUAL_LEAK_DETECTOR171 #cmakedefine VISUAL_LEAK_DETECTOR_ENABLE 172 #ifdef VISUAL_LEAK_DETECTOR_ENABLE 173 173 # include <vld.h> 174 174 #endif -
code/branches/buildsystem3/src/orxonox/CMakeLists.txt
r2670 r2673 76 76 ) 77 77 78 ORXONOX_INSTALL(orxonox) 79 80 78 81 # When using Visual Studio we want to use the output directory as working 79 82 # directory and we also want to specify where the external dlls … … 93 96 CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/orxonox.vcproj.user" "${CMAKE_CURRENT_BINARY_DIR}/orxonox.vcproj.user") 94 97 ENDIF(MSVC) 95 96 ORXONOX_INSTALL(orxonox)
Note: See TracChangeset
for help on using the changeset viewer.