Last change
on this file since 2580 was
2579,
checked in by rgrieder, 16 years ago
|
- Equipped find scripts with debug/optimized functions. If you have different debug prefixes on your platform simply change ${LIBRARY_DEBUG_POSTFIX} ("_d" default).
- Clean up in ConfigMSVC.cmake and ConfigMinGW.cmake
- Also had a good look at the MinGW libraries according to the libs_1889_mingw.zip (no warranty at all, hope I got them all)
- INSTALL commands are currently limited to non Windows platforms (don't yet know why it doesn't work)
|
-
Property svn:eol-style set to
native
|
File size:
1.2 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{OGRE_HOME} |
---|
20 | /usr/local |
---|
21 | /usr |
---|
22 | PATH_SUFFIXES include include/OGRE |
---|
23 | ) |
---|
24 | FIND_LIBRARY(OGRE_LIBRARY_OPTIMIZED |
---|
25 | NAMES OgreMain |
---|
26 | PATHS |
---|
27 | $ENV{OGRE_HOME} |
---|
28 | /usr/local |
---|
29 | /usr |
---|
30 | PATH_SUFFIXES lib |
---|
31 | ) |
---|
32 | FIND_LIBRARY(OGRE_LIBRARY_DEBUG |
---|
33 | NAMES OgreMain_${LIBRARY_DEBUG_POSTFIX} |
---|
34 | PATHS |
---|
35 | $ENV{OGRE_HOME} |
---|
36 | /usr/local |
---|
37 | /usr |
---|
38 | PATH_SUFFIXES lib |
---|
39 | ) |
---|
40 | |
---|
41 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(OGRE DEFAULT_MSG |
---|
42 | OGRE_LIBRARY_OPTIMIZED |
---|
43 | OGRE_INCLUDE_DIR |
---|
44 | ) |
---|
45 | |
---|
46 | # Set optimized and debug libraries |
---|
47 | HandleLibraryTypes(OGRE) |
---|
48 | |
---|
49 | MARK_AS_ADVANCED( |
---|
50 | OGRE_LIBRARY |
---|
51 | OGRE_LIBRARY_OPTIMIZED |
---|
52 | OGRE_LIBRARY_DEBUG |
---|
53 | OGRE_INCLUDE_DIR |
---|
54 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.