Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/cmake/FindOGRE.cmake @ 2580

Last change on this file since 2580 was 2579, checked in by rgrieder, 16 years ago
  • Equipped find scripts with debug/optimized functions. If you have different debug prefixes on your platform simply change ${LIBRARY_DEBUG_POSTFIX} ("_d" default).
  • Clean up in ConfigMSVC.cmake and ConfigMinGW.cmake
  • Also had a good look at the MinGW libraries according to the libs_1889_mingw.zip (no warranty at all, hope I got them all)
  • INSTALL commands are currently limited to non Windows platforms (don't yet know why it doesn't work)
  • Property svn:eol-style set to native
File size: 1.2 KB
RevLine 
[1505]1# Find OGRE includes and library
2#
3# This module defines
4#  OGRE_INCLUDE_DIR
[2509]5#  OGRE_LIBRARY, the library to link against to use OGRE.
[1505]6#  OGRE_FOUND, If false, do not try to use OGRE
7#
8# Copyright © 2007, Matt Williams
9# Modified by Nicolas Schlumberger to make it work on the Tardis-Infrastucture of the ETH Zurich
10#
11# Redistribution and use is allowed according to the terms of the BSD license.
[1776]12#
13# Several changes and additions by Fabian 'x3n' Landau
[2509]14# Lots of simplifications by Adrian Friedli
[1776]15#                 > www.orxonox.net <
[1505]16
[2509]17FIND_PATH(OGRE_INCLUDE_DIR Ogre.h
18    PATHS
[2568]19    $ENV{OGRE_HOME}
[2509]20    /usr/local
21    /usr
22    PATH_SUFFIXES include include/OGRE
23)
[2579]24FIND_LIBRARY(OGRE_LIBRARY_OPTIMIZED
25    NAMES OgreMain
26    PATHS
27    $ENV{OGRE_HOME}
28    /usr/local
29    /usr
30    PATH_SUFFIXES lib
31)
32FIND_LIBRARY(OGRE_LIBRARY_DEBUG
33    NAMES OgreMain_${LIBRARY_DEBUG_POSTFIX}
34    PATHS
35    $ENV{OGRE_HOME}
36    /usr/local
37    /usr
38    PATH_SUFFIXES lib
39)
[1505]40
[2509]41FIND_PACKAGE_HANDLE_STANDARD_ARGS(OGRE DEFAULT_MSG
[2579]42    OGRE_LIBRARY_OPTIMIZED
[2509]43    OGRE_INCLUDE_DIR
44)
[1776]45
[2579]46# Set optimized and debug libraries
47HandleLibraryTypes(OGRE)
48
[2509]49MARK_AS_ADVANCED(
50    OGRE_LIBRARY
[2579]51    OGRE_LIBRARY_OPTIMIZED
52    OGRE_LIBRARY_DEBUG
[2509]53    OGRE_INCLUDE_DIR
54)
Note: See TracBrowser for help on using the repository browser.