Changeset 5664 for code/branches/resource2/cmake/LibraryConfig.cmake
- Timestamp:
- Aug 20, 2009, 11:49:37 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/resource2/cmake/LibraryConfig.cmake
r3304 r5664 31 31 # Prevent CMake from finding libraries in the installation folder on Windows. 32 32 # There might already be an installation from another compiler 33 IF( DEPENDENCY_PACKAGE_ENABLE)33 IF(WIN32) 34 34 LIST(REMOVE_ITEM CMAKE_SYSTEM_PREFIX_PATH "${CMAKE_INSTALL_PREFIX}") 35 35 LIST(REMOVE_ITEM CMAKE_SYSTEM_LIBRARY_PATH "${CMAKE_INSTALL_PREFIX}/bin") … … 72 72 73 73 # User script 74 SET( USER_SCRIPT_LIBRARY_CONFIG"" CACHE FILEPATH74 SET(LIBRARY_CONFIG_USER_SCRIPT "" CACHE FILEPATH 75 75 "Specify a CMake script if you wish to write your own library path config. 76 See LibraryConfigTardis.cmake or LibraryConfigMinGW.cmake for examples.") 77 IF(USER_SCRIPT_LIBRARY_CONFIG) 78 IF(EXISTS ${CMAKE_MODULE_PATH}/${USER_SCRIPT_LIBRARY_CONFIG}.cmake) 79 INCLUDE(${USER_SCRIPT_LIBRARY_CONFIG}) 80 ELSEIF(EXISTS ${USER_SCRIPT_LIBRARY_CONFIG}) 81 INCLUDE(${USER_SCRIPT_LIBRARY_CONFIG}) 82 ELSEIF(EXISTS ${CMAKE_MODULE_PATH}/${USER_SCRIPT_LIBRARY_CONFIG}) 83 INCLUDE(${CMAKE_MODULE_PATH}/${USER_SCRIPT_LIBRARY_CONFIG}) 84 ENDIF() 85 ENDIF(USER_SCRIPT_LIBRARY_CONFIG) 76 See LibraryConfigTardis.cmake for an example.") 77 IF(LIBRARY_CONFIG_USER_SCRIPT) 78 IF(EXISTS ${CMAKE_MODULE_PATH}/${LIBRARY_CONFIG_USER_SCRIPT}) 79 INCLUDE(${CMAKE_MODULE_PATH}/${LIBRARY_CONFIG_USER_SCRIPT}) 80 ENDIF() 81 ENDIF(LIBRARY_CONFIG_USER_SCRIPT) 86 82 87 83 … … 185 181 ENDIF() 186 182 ENDIF(WIN32) 183 184 185 ################# OGRE Plugins ################## 186 187 # More plugins: Plugin_BSPSceneManager, Plugin_OctreeSceneManager 188 SET(OGRE_PLUGINS_INT Plugin_ParticleFX) 189 IF(WIN32) 190 # CG program manager is probably DirectX related (not available under unix) 191 LIST(APPEND OGRE_PLUGINS_INT Plugin_CgProgramManager) 192 ENDIF(WIN32) 193 SET(OGRE_PLUGINS ${OGRE_PLUGINS_INT} CACHE STRING 194 "Specify which OGRE plugins to load. Existance check is performed.") 195 196 # Check the plugins and determine the plugin folder 197 # You can give a hint by setting the environment variable ENV{OGRE_PLUGIN_DIR} 198 INCLUDE(CheckOGREPlugins) 199 CHECK_OGRE_PLUGINS(${OGRE_PLUGINS}) 200
Note: See TracChangeset
for help on using the changeset viewer.