Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2673


Ignore:
Timestamp:
Feb 16, 2009, 4:15:52 PM (16 years ago)
Author:
rgrieder
Message:
  • Renamed some Cache variables
  • Hid some other (into the advanced section)
  • removed /../ from media and dependency directory
  • OGRE plugins don't specify the render systems anymore, just the plugins.
  • CheckOGREPlugins automatically finds the available render systems
Location:
code/branches/buildsystem3
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem3/cmake/BuildConfig.cmake

    r2664 r2673  
    2525 #
    2626
    27 ################ Misc Options ###################
     27################# Misc Options ##################
    2828
    2929# Set binary output directories
     
    3131SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
    3232SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
     33
     34# Take care of some CMake 2.6.0 leftovers
     35MARK_AS_ADVANCED(EXECUTABLE_OUTPUT_PATH LIBRARY_OUTPUT_PATH)
    3336
    3437# Sets where to find the external libraries like OgreMain.dll at runtime
     
    5457ENDIF()
    5558
    56 OPTION(EXTRA_WARNINGS "Enable some extra warnings (heavily pollutes the output)")
     59OPTION(EXTRA_COMPILER_WARNINGS "Enable some extra warnings (heavily pollutes the output)")
     60
     61
     62################# OGRE Plugins ##################
    5763
    5864# 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)
     65SET(OGRE_PLUGINS_INT Plugin_ParticleFX)
    6166IF(WIN32)
    6267  # CG program manager is probably DirectX related (not available under unix)
     
    7277
    7378
    74 ############## Compiler Config ##################
     79################ Compiler Config ################
    7580
    7681INCLUDE(FlagUtilities)
     
    8590ENDIF()
    8691
    87 SET(BUILD_CONFIG_USER_SCRIPT "" CACHE FILEPATH
     92SET(USER_SCRIPT_BUILD_CONFIG "" CACHE FILEPATH
    8893    "Specify a CMake script if you wish to write your own build config.
    8994     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})
     95IF(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})
    97102  ENDIF()
    98 ENDIF(BUILD_CONFIG_USER_SCRIPT)
     103ENDIF(USER_SCRIPT_BUILD_CONFIG)
    99104
    100105
    101 ################ Test options ###################
     106################# Test options ##################
    102107
    103 OPTION(ENABLE_TESTS "Enable build tests.")
    104 IF(ENABLE_TESTS)
     108OPTION(TESTING_ENABLE "Enable build tests.")
     109IF(TESTING_ENABLE)
    105110  ENABLE_TESTING()
    106 ENDIF(ENABLE_TESTS)
     111ENDIF(TESTING_ENABLE)
    107112
    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 ##############
     113OPTION(NETWORK_TESTING_ENABLED "Build network testing tools: i.e. chatclient chatserver and alike.")OPTION(NETWORKTRAFFIC_TESTING_ENABLED "Build dummyserver4 and dummyclient4.")
     114############# Installation Settings #############
    113115
    114116IF(UNIX)
     
    133135
    134136
    135 ################# Unix rpath ####################
     137################## Unix rpath ###################
    136138
    137139# use, i.e. don't skip the full RPATH for the build tree
     
    150152
    151153
    152 ####### Static/Dynamic linking defines ##########
     154######## Static/Dynamic linking defines #########
    153155
    154156# Disable Boost auto linking completely
  • code/branches/buildsystem3/cmake/BuildConfigGCC.cmake

    r2664 r2673  
    5757
    5858# Increase warning level if requested
    59 IF(EXTRA_WARNINGS)
     59IF(EXTRA_COMPILER_WARNINGS)
    6060  REMOVE_COMPILER_FLAGS("-Wall" CACHE)
    6161  ADD_COMPILER_FLAGS("-Wextra --Wno-unused-parameter" CACHE)
  • code/branches/buildsystem3/cmake/BuildConfigMSVC.cmake

    r2668 r2673  
    2626######################## Options ########################
    2727
    28 OPTION(ACTIVATE_VISUAL_LEAK_DETECTOR "Memory leak detector" FALSE)
     28OPTION(VISUAL_LEAK_DETECTOR_ENABLE "Memory leak detector" FALSE)
    2929
    3030#################### Compiler Flags #####################
     
    6565
    6666# Increase warning level if requested
    67 IF(EXTRA_WARNINGS)
     67IF(EXTRA_COMPILER_WARNINGS)
    6868  REMOVE_COMPILER_FLAGS("-W1 -W2 -W3" CACHE)
    6969  ADD_COMPILER_FLAGS   ("-W4" CACHE)
  • code/branches/buildsystem3/cmake/CheckOGREPlugins.cmake

    r2664 r2673  
    3131 #    OGRE_PLUGINS_DEBUG          Names of the debug plugins without extension
    3232 #    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.
    3336 #
    3437
     
    4447  SET(CMAKE_FIND_LIBRARY_PREFIXES "")
    4548
     49  SET(OGRE_RENDER_SYSTEMS RenderSystem_GL RenderSystem_Direct3D9)
    4650  SET(OGRE_RENDER_SYSTEM_FOUND FALSE)
    47   FOREACH(_plugin ${OGRE_PLUGINS})
     51  FOREACH(_plugin ${OGRE_PLUGINS} ${OGRE_RENDER_SYSTEMS})
    4852    FIND_LIBRARY(OGRE_PLUGIN_${_plugin}_OPTIMIZED
    4953      NAMES ${_plugin}
  • code/branches/buildsystem3/cmake/LibraryConfig.cmake

    r2664 r2673  
    3939SET(_option_msg "Set this to true to use precompiled dependecy archives")
    4040IF(WIN32)
    41   OPTION(USE_DEPENDENCY_PACKAGE "${_option_msg}" ON)
     41  OPTION(DEPENDENCY_PACKAGE_ENABLE "${_option_msg}" ON)
    4242ELSE(WIN32)
    43   OPTION(USE_DEPENDENCY_PACKAGE "${_option_msg}" FALSE)
     43  OPTION(DEPENDENCY_PACKAGE_ENABLE "${_option_msg}" FALSE)
    4444ENDIF(WIN32)
    4545
     
    4848INCLUDE(LibraryConfigApple)
    4949
    50 IF(USE_DEPENDENCY_PACKAGE)
    51   FIND_PATH(DEPENDENCY_DIR
     50IF(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
    5254    NAMES PackageConfigMSVC.cmake PackageConfigMinGW.cmake
    5355    PATHS
    5456      ${CMAKE_SOURCE_DIR}/dependencies
    55       ${CMAKE_SOURCE_DIR}/../dependencies
    56       ${CMAKE_SOURCE_DIR}/../lib_dist/dependencies
     57      ${_dep_dir_1}
     58      ${_dep_dir_2}
    5759  )
    58   IF(NOT DEPENDENCY_DIR)
     60  IF(NOT DEPENDENCY_PACKAGE_DIR)
    5961    MESSAGE(STATUS "Warning: Could not find dependency directory."
    6062                   "Disable LIBRARY_USE_PACKAGE if you have none intalled.")
     
    6264    FILE(GLOB _package_config_files "${DEPENDENCY_DIR}/PackageConfig*.cmake")
    6365    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
    6868    IF(DEP_BINARY_DIR AND WIN32)
    6969      # When installing a debug version, we really can't know which libraries
     
    8585      )
    8686    ENDIF(DEP_BINARY_DIR AND WIN32)
    87   ENDIF(NOT DEPENDENCY_DIR)
    88 ENDIF(USE_DEPENDENCY_PACKAGE)
     87  ENDIF(NOT DEPENDENCY_PACKAGE_DIR)
     88ENDIF(DEPENDENCY_PACKAGE_ENABLE)
    8989
    9090# User script
    91 SET(LIBRARY_CONFIG_USER_SCRIPT "" CACHE FILEPATH
     91SET(USER_SCRIPT_LIBRARY_CONFIG "" CACHE FILEPATH
    9292    "Specify a CMake script if you wish to write your own library path config.
    9393     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})
     94IF(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})
    101101  ENDIF()
    102 ENDIF(LIBRARY_CONFIG_USER_SCRIPT)
     102ENDIF(USER_SCRIPT_LIBRARY_CONFIG)
    103103
    104104
     
    180180  FIND_PACKAGE(Boost 1.35 REQUIRED system)
    181181ENDIF()
     182# No auto linking, so this option is useless anyway
     183MARK_AS_ADVANCED(Boost_LIB_DIAGNOSTIC_DEFINITIONS)
    182184
    183185####### Static/Dynamic linking options ##########
  • code/branches/buildsystem3/media/CMakeLists.txt

    r2670 r2673  
    2525
    2626# Specify media directory
     27GET_FILENAME_COMPONENT(_search_path_1 ${CMAKE_SOURCE_DIR}/../media ABSOLUTE)
    2728FIND_PATH(ORXONOX_MEDIA_DIRECTORY resources.cfg
    2829  PATHS
    2930    ${CMAKE_CURRENT_SOURCE_DIR}
    30     ${CMAKE_SOURCE_DIR}/../media
     31    ${_search_path_1}
    3132    $ENV{ORXONOX_MEDIA_DIR}
    3233)
  • code/branches/buildsystem3/src/OrxonoxConfig.h.in

    r2664 r2673  
    169169
    170170/* Visual Leak Detector looks for memory leaks */
    171 #cmakedefine ACTIVATE_VISUAL_LEAK_DETECTOR
    172 #ifdef ACTIVATE_VISUAL_LEAK_DETECTOR
     171#cmakedefine VISUAL_LEAK_DETECTOR_ENABLE
     172#ifdef VISUAL_LEAK_DETECTOR_ENABLE
    173173#  include <vld.h>
    174174#endif
  • code/branches/buildsystem3/src/orxonox/CMakeLists.txt

    r2670 r2673  
    7676)
    7777
     78ORXONOX_INSTALL(orxonox)
     79
     80
    7881# When using Visual Studio we want to use the output directory as working
    7982# directory and we also want to specify where the external dlls
     
    9396  CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/orxonox.vcproj.user" "${CMAKE_CURRENT_BINARY_DIR}/orxonox.vcproj.user")
    9497ENDIF(MSVC)
    95 
    96 ORXONOX_INSTALL(orxonox)
Note: See TracChangeset for help on using the changeset viewer.