Last change
on this file since 2327 was
2318,
checked in by adrfried, 16 years ago
|
cmake for mingw improved
|
-
Property svn:eol-style set to
native
|
File size:
1.6 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 | IF(WIN32) |
---|
26 | FIND_LIBRARY(OGRE_LIBRARY_ |
---|
27 | NAMES OgreMain |
---|
28 | PATHS |
---|
29 | $ENV{OGREDIR} |
---|
30 | PATH_SUFFIXES lib |
---|
31 | ) |
---|
32 | FIND_LIBRARY(OGRE_LIBRARY_d |
---|
33 | NAMES OgreMain_d |
---|
34 | PATHS |
---|
35 | $ENV{OGREDIR} |
---|
36 | PATH_SUFFIXES lib |
---|
37 | ) |
---|
38 | IF(OGRE_LIBRARY_) |
---|
39 | IF(OGRE_LIBRARY_d) |
---|
40 | SET(OGRE_LIBRARY optimized ${OGRE_LIBRARY_} debug ${OGRE_LIBRARY_d}) |
---|
41 | ELSE(OGRE_LIBRARY_d) |
---|
42 | SET(OGRE_LIBRARY ${OGRE_LIBRARY_}) |
---|
43 | ENDIF(OGRE_LIBRARY_d) |
---|
44 | ENDIF(OGRE_LIBRARY_) |
---|
45 | ELSE(WIN32) |
---|
46 | FIND_LIBRARY(OGRE_LIBRARY |
---|
47 | NAMES OgreMain |
---|
48 | PATHS |
---|
49 | $ENV{OGREDIR} |
---|
50 | /usr/local |
---|
51 | /usr |
---|
52 | PATH_SUFFIXES lib |
---|
53 | ) |
---|
54 | ENDIF(WIN32) |
---|
55 | |
---|
56 | INCLUDE(FindPackageHandleStandardArgs) |
---|
57 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(OGRE DEFAULT_MSG |
---|
58 | OGRE_LIBRARY |
---|
59 | OGRE_INCLUDE_DIR |
---|
60 | ) |
---|
61 | |
---|
62 | MARK_AS_ADVANCED( |
---|
63 | OGRE_LIBRARY |
---|
64 | OGRE_LIBRARY_ |
---|
65 | OGRE_LIBRARY_d |
---|
66 | OGRE_INCLUDE_DIR |
---|
67 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.