Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 2583 was 2583, checked in by rgrieder, 15 years ago
  • Use $ENV{BOOST_ROOT} to find boost if possible
  • Set TOLUA_PARSER_WORKING_DIRECTORY now defaults to ${CMAKE_RUNTIME_OUTPUT_PATH}
  • Added bin/release, bin/debug, release and debug to the Ogre library prefix paths
  • Lots of small fixes and changes
  • 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#                 > www.orxonox.net <
16
17INCLUDE(FindPackageHandleStandardArgs)
18INCLUDE(HandleLibraryTypes)
19
20FIND_PATH(OGRE_INCLUDE_DIR Ogre.h
21    PATHS $ENV{OGRE_HOME} /usr/local /usr
22    PATH_SUFFIXES include include/OGRE
23)
24FIND_LIBRARY(OGRE_LIBRARY_OPTIMIZED
25    NAMES OgreMain
26    PATHS $ENV{OGRE_HOME} /usr/local /usr
27    PATH_SUFFIXES lib bin/Release bin/release
28)
29FIND_LIBRARY(OGRE_LIBRARY_DEBUG
30    NAMES OgreMain${LIBRARY_DEBUG_POSTFIX}
31    PATHS $ENV{OGRE_HOME} /usr/local /usr
32    PATH_SUFFIXES lib bin/Debug bin/debug
33)
34
35FIND_PACKAGE_HANDLE_STANDARD_ARGS(OGRE DEFAULT_MSG
36    OGRE_LIBRARY_OPTIMIZED
37    OGRE_INCLUDE_DIR
38)
39
40# Set optimized and debug libraries
41HandleLibraryTypes(OGRE)
42
43MARK_AS_ADVANCED(
44    OGRE_LIBRARY
45    OGRE_LIBRARY_OPTIMIZED
46    OGRE_LIBRARY_DEBUG
47    OGRE_INCLUDE_DIR
48)
Note: See TracBrowser for help on using the repository browser.