Last change
on this file since 2274 was
2198,
checked in by adrfried, 16 years ago
|
FindOGRE cleaned up
|
-
Property svn:eol-style set to
native
|
File size:
1.0 KB
|
Rev | Line | |
---|
[1505] | 1 | # Find OGRE includes and library |
---|
| 2 | # |
---|
| 3 | # This module defines |
---|
| 4 | # OGRE_INCLUDE_DIR |
---|
[2198] | 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 |
---|
[2198] | 14 | # Lots of simplifications by Adrian Friedli |
---|
[1776] | 15 | # > www.orxonox.net < |
---|
[1505] | 16 | |
---|
[2198] | 17 | FIND_PATH(OGRE_INCLUDE_DIR Ogre.h |
---|
| 18 | PATHS |
---|
| 19 | $ENV{OGREDIR} |
---|
| 20 | /usr/local |
---|
| 21 | /usr |
---|
| 22 | PATH_SUFFIXES include include/OGRE |
---|
| 23 | ) |
---|
[1505] | 24 | |
---|
[2198] | 25 | #SET(OGRE_LIBRARIES debug OgreMain_d optimized OgreMain) |
---|
| 26 | FIND_LIBRARY(OGRE_LIBRARY |
---|
| 27 | NAMES OgreMain |
---|
| 28 | PATHS |
---|
| 29 | $ENV{OGREDIR} |
---|
| 30 | /usr/local |
---|
| 31 | /usr |
---|
| 32 | PATH_SUFFIXES lib |
---|
| 33 | ) |
---|
[1776] | 34 | |
---|
[2198] | 35 | INCLUDE(FindPackageHandleStandardArgs) |
---|
| 36 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(OGRE DEFAULT_MSG |
---|
| 37 | OGRE_LIBRARY |
---|
| 38 | OGRE_INCLUDE_DIR |
---|
| 39 | ) |
---|
[1776] | 40 | |
---|
[2198] | 41 | MARK_AS_ADVANCED( |
---|
| 42 | OGRE_LIBRARY |
---|
| 43 | OGRE_INCLUDE_DIR |
---|
| 44 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.