Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 2614 was 2614, checked in by rgrieder, 15 years ago

Updated FindXXX scripts.

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1# Find OGRE includes and library
2#
3# This module defines
4#  OGRE_INCLUDE_DIR
5#  OGRE_LIBRARY, the library to link against to use OGRE.
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.
12#
13# Several changes and additions by Fabian 'x3n' Landau
14# Lots of simplifications by Adrian Friedli
15# Plugin checking by Reto Grieder
16#                 > www.orxonox.net <
17
18INCLUDE(FindPackageHandleStandardArgs)
19INCLUDE(HandleLibraryTypes)
20
21FIND_PATH(OGRE_INCLUDE_DIR Ogre.h
22    PATHS $ENV{OGRE_HOME} /usr/local /usr
23    PATH_SUFFIXES include include/OGRE
24)
25FIND_LIBRARY(OGRE_LIBRARY_OPTIMIZED
26    NAMES OgreMain
27    PATHS $ENV{OGRE_HOME} /usr/local /usr
28    PATH_SUFFIXES lib bin/Release bin/release Release release
29)
30FIND_LIBRARY(OGRE_LIBRARY_DEBUG
31    NAMES OgreMain${LIBRARY_DEBUG_POSTFIX}
32    PATHS $ENV{OGRE_HOME} /usr/local /usr
33    PATH_SUFFIXES lib bin/Debug bin/debug Debug debug
34)
35
36FIND_PACKAGE_HANDLE_STANDARD_ARGS(OGRE DEFAULT_MSG
37    OGRE_LIBRARY_OPTIMIZED
38    OGRE_INCLUDE_DIR
39)
40
41# Set optimized and debug libraries
42HANDLE_LIBRARY_TYPES(OGRE)
43
44MARK_AS_ADVANCED(
45    OGRE_LIBRARY
46    OGRE_LIBRARY_OPTIMIZED
47    OGRE_LIBRARY_DEBUG
48    OGRE_INCLUDE_DIR
49)
Note: See TracBrowser for help on using the repository browser.