Changeset 2612 for code/branches/buildsystem2/cmake/CheckOGREPlugins.cmake
- Timestamp:
- Jan 29, 2009, 10:04:38 PM (15 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem2/cmake/CheckOGREPlugins.cmake
r2611 r2612 1 # Find OGRE includes and library2 #3 # This module defines4 # OGRE_INCLUDE_DIR5 # OGRE_LIBRARY, the library to link against to use OGRE.6 # OGRE_FOUND, If false, do not try to use OGRE7 #8 # Copyright © 2007, Matt Williams9 # Modified by Nicolas Schlumberger to make it work on the Tardis-Infrastucture of the ETH Zurich10 #11 # Redistribution and use is allowed according to the terms of the BSD license.12 #13 # Several changes and additions by Fabian 'x3n' Landau14 # Lots of simplifications by Adrian Friedli15 # Plugin checking by Reto Grieder16 # > www.orxonox.net <17 18 INCLUDE(FindPackageHandleStandardArgs)19 INCLUDE(HandleLibraryTypes)20 21 FIND_PATH(OGRE_INCLUDE_DIR Ogre.h22 PATHS $ENV{OGRE_HOME} /usr/local /usr23 PATH_SUFFIXES include include/OGRE24 )25 FIND_LIBRARY(OGRE_LIBRARY_OPTIMIZED26 NAMES OgreMain27 PATHS $ENV{OGRE_HOME} /usr/local /usr28 PATH_SUFFIXES lib bin/Release bin/release Release release29 )30 FIND_LIBRARY(OGRE_LIBRARY_DEBUG31 NAMES OgreMain${LIBRARY_DEBUG_POSTFIX}32 PATHS $ENV{OGRE_HOME} /usr/local /usr33 PATH_SUFFIXES lib bin/Debug bin/debug Debug debug34 )35 36 FIND_PACKAGE_HANDLE_STANDARD_ARGS(OGRE DEFAULT_MSG37 OGRE_LIBRARY_OPTIMIZED38 OGRE_INCLUDE_DIR39 )40 41 # Set optimized and debug libraries42 HandleLibraryTypes(OGRE)43 44 ###############################################45 # Also make sure we have the required plugins #46 ###############################################47 48 1 IF(WIN32) 49 2 # On Windows we need only *.dll, not *.lib. Especially the MSVC generator doesn't look for *.dll … … 116 69 STRING(REPLACE ";" ", " OGRE_PLUGINS_RELEASE "${OGRE_PLUGINS_RELEASE}") 117 70 STRING(REPLACE ";" ", " OGRE_PLUGINS_DEBUG "${OGRE_PLUGINS_DEBUG}") 118 119 120 MARK_AS_ADVANCED(121 OGRE_LIBRARY122 OGRE_LIBRARY_OPTIMIZED123 OGRE_LIBRARY_DEBUG124 OGRE_INCLUDE_DIR125 )
Note: See TracChangeset
for help on using the changeset viewer.