Changeset 11127
- Timestamp:
- Feb 21, 2016, 11:15:03 PM (9 years ago)
- Location:
- code/branches/ogre1.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ogre1.9/cmake/tools/FindOGRE.cmake
r8351 r11127 38 38 # Inspect OgrePrerquisites.h for the version number 39 39 DETERMINE_VERSION(OGRE ${OGRE_INCLUDE_DIR}/OgrePrerequisites.h) 40 COMPARE_VERSION_STRINGS("${OGRE_VERSION}" "1.9" _version_1_9_compare TRUE) 41 # Version 1.9 moved overlays into a separate component (which means we must find and link to another library) 42 IF(_version_1_9_compare GREATER -1) 43 FIND_LIBRARY(OGRE_OVERLAY_LIBRARY_OPTIMIZED 44 NAMES OgreOverlay 45 PATHS $ENV{OGRE_HOME} 46 PATH_SUFFIXES lib bin/Release bin/release Release release 47 ) 48 FIND_LIBRARY(OGRE_OVERLAY_LIBRARY_DEBUG 49 NAMES OgreOverlayd OgreOverlay_d OgreOverlayD OgreOverlay_D 50 PATHS $ENV{OGRE_HOME} 51 PATH_SUFFIXES lib bin/Debug bin/debug Debug debug 52 ) 53 SET(OGRE_REQUIRED_VARIABLES 54 OGRE_OVERLAY_LIBRARY_OPTIMIZED 55 ) 56 ENDIF() 40 57 41 58 # Handle the REQUIRED argument and set OGRE_FOUND … … 44 61 OGRE_LIBRARY_OPTIMIZED 45 62 OGRE_INCLUDE_DIR 63 ${OGRE_REQUIRED_VARIABLES} 46 64 ) 47 65 48 66 # Collect optimized and debug libraries 49 67 HANDLE_LIBRARY_TYPES(OGRE) 68 HANDLE_LIBRARY_TYPES(OGRE_OVERLAY) 50 69 51 70 MARK_AS_ADVANCED( … … 53 72 OGRE_LIBRARY_OPTIMIZED 54 73 OGRE_LIBRARY_DEBUG 74 OGRE_OVERLAY_LIBRARY_OPTIMIZED 75 OGRE_OVERLAY_LIBRARY_DEBUG 55 76 ) -
code/branches/ogre1.9/src/orxonox/CMakeLists.txt
r11080 r11127 69 69 LINK_LIBRARIES 70 70 ${OGRE_LIBRARY} 71 ${OGRE_OVERLAY_LIBRARY} 71 72 ${CEGUI} 72 73 ${LUA5.1_LIBRARY}
Note: See TracChangeset
for help on using the changeset viewer.