Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 29, 2009, 11:11:45 PM (15 years ago)
Author:
rgrieder
Message:
  • Functionised CheckOGREPlugins.cmake
  • Updated LibraryConfigMSVC.cmake and LibraryConfigMinGW.cmake
  • Some more changes in LibraryConfig.cmake and BuildConfig.cmake
File:
1 edited

Legend:

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

    r2612 r2618  
    3333SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
    3434
     35# Sets where to find the external libraries like OgreMain.dll at runtime
     36# On Unix you should not have to change this at all.
     37IF(NOT ORXONOX_LIBRARY_BIN_DIR)
     38  SET(ORXONOX_LIBRARY_BIN_DIR ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
     39ENDIF(NOT ORXONOX_LIBRARY_BIN_DIR)
     40
    3541# Set Debug build to default when not having multi-config generator like msvc
    36 IF(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
    37   SET(CMAKE_BUILD_TYPE "Debug")
    38 ENDIF(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
    39 
    40 # When searching for debug libraries, this is appended to the libarary name
    41 SET(LIBRARY_DEBUG_POSTFIX "_d")
    42 # Sets where to find the binary directory of external libraries
    43 SET(ORXONOX_LIBRARY_BIN_DIR ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
    44 # Working directory for the tolua parser. Adjust for windows because lua.dll has to be there!
    45 SET(TOLUA_PARSER_WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
     42IF(NOT CMAKE_CONFIGURATION_TYPES)
     43  IF(NOT CMAKE_BUILD_TYPE)
     44    SET(CMAKE_BUILD_TYPE Debug CACHE STRING
     45        "Build types are: Debug, Release, MinSizeRel, RelWithDebInfo" FORCE)
     46  ENDIF(NOT CMAKE_BUILD_TYPE)
     47  MARK_AS_ADVANCED(CLEAR CMAKE_BUILD_TYPE)
     48ELSE(NOT CMAKE_CONFIGURATION_TYPES)
     49  IF(CMAKE_BUILD_TYPE)
     50    SET(CMAKE_BUILD_TYPE CACHE STRING FORCE)
     51  ENDIF(CMAKE_BUILD_TYPE)
     52  MARK_AS_ADVANCED(CMAKE_BUILD_TYPE)
     53ENDIF(NOT CMAKE_CONFIGURATION_TYPES)
    4654
    4755OPTION(EXTRA_WARNINGS "Enable some extra warnings (heavily pollutes the output)")
     
    5563# More plugins: Plugin_BSPSceneManager, Plugin_OctreeSceneManager
    5664# Render systems may be optional, but at least one has to be found in FindOgre
    57 SET(OGRE_PLUGINS RenderSystem_GL RenderSystem_Direct3D9 Plugin_ParticleFX)
     65SET(OGRE_PLUGINS_INT RenderSystem_GL RenderSystem_Direct3D9 Plugin_ParticleFX)
    5866IF(WIN32)
    5967  # CG program manager is probably DirectX related (not available under unix)
    60   LIST(APPEND OGRE_PLUGINS Plugin_CgProgramManager)
     68  LIST(APPEND OGRE_PLUGINS_INT Plugin_CgProgramManager)
    6169ENDIF(WIN32)
     70SET(OGRE_PLUGINS ${OGRE_PLUGINS_INT} CACHE STRING
     71   "Specify which OGRE plugins to load. Existance check is performed.")
    6272
    6373# Check the plugins and determine the plugin folder
    6474# You can give a hint by setting the environment variable ENV{OGRE_PLUGIN_DIR}
    6575INCLUDE(CheckOGREPlugins)
     76CHECK_OGRE_PLUGINS(${OGRE_PLUGINS})
    6677
    6778
Note: See TracChangeset for help on using the changeset viewer.