Changeset 2618 for code/branches/buildsystem2/cmake/BuildConfig.cmake
- Timestamp:
- Jan 29, 2009, 11:11:45 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem2/cmake/BuildConfig.cmake
r2612 r2618 33 33 SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) 34 34 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. 37 IF(NOT ORXONOX_LIBRARY_BIN_DIR) 38 SET(ORXONOX_LIBRARY_BIN_DIR ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) 39 ENDIF(NOT ORXONOX_LIBRARY_BIN_DIR) 40 35 41 # 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}) 42 IF(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) 48 ELSE(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) 53 ENDIF(NOT CMAKE_CONFIGURATION_TYPES) 46 54 47 55 OPTION(EXTRA_WARNINGS "Enable some extra warnings (heavily pollutes the output)") … … 55 63 # More plugins: Plugin_BSPSceneManager, Plugin_OctreeSceneManager 56 64 # 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)65 SET(OGRE_PLUGINS_INT RenderSystem_GL RenderSystem_Direct3D9 Plugin_ParticleFX) 58 66 IF(WIN32) 59 67 # 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) 61 69 ENDIF(WIN32) 70 SET(OGRE_PLUGINS ${OGRE_PLUGINS_INT} CACHE STRING 71 "Specify which OGRE plugins to load. Existance check is performed.") 62 72 63 73 # Check the plugins and determine the plugin folder 64 74 # You can give a hint by setting the environment variable ENV{OGRE_PLUGIN_DIR} 65 75 INCLUDE(CheckOGREPlugins) 76 CHECK_OGRE_PLUGINS(${OGRE_PLUGINS}) 66 77 67 78
Note: See TracChangeset
for help on using the changeset viewer.