Last change
on this file since 2213 was
2198,
checked in by adrfried, 16 years ago
|
FindOGRE cleaned up
|
-
Property svn:eol-style set to
native
|
File size:
1.0 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 | |
---|
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 | ) |
---|
24 | |
---|
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 | ) |
---|
34 | |
---|
35 | INCLUDE(FindPackageHandleStandardArgs) |
---|
36 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(OGRE DEFAULT_MSG |
---|
37 | OGRE_LIBRARY |
---|
38 | OGRE_INCLUDE_DIR |
---|
39 | ) |
---|
40 | |
---|
41 | MARK_AS_ADVANCED( |
---|
42 | OGRE_LIBRARY |
---|
43 | OGRE_INCLUDE_DIR |
---|
44 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.