Last change
on this file since 2613 was
2612,
checked in by rgrieder, 16 years ago
|
Rearranged CMake configuration code. I split serveral files in two and moved some code around.
There are no actual code changes!
Details:
- Everything that involves library finding is in LibraryConfig.cmake. It includes other LibraryConfigXXX.cmake files that set specific options for certain platforms or package configurations (like MSVC or MinGW dependency package).
- All build related code is in BuildConfig.cmake. The actual compiler configuration is done in BuildConfigXXX.cmake where XXX can be GCC or MSVC.
- The changes above implied splitting FindOGRE.cmake in two (was going to do it anyway, but rather in a later commit) so that CheckOGREPlugins.cmake is now a separate module.
|
-
Property svn:eol-style set to
native
|
File size:
1.3 KB
|
Rev | Line | |
---|
[1505] | 1 | # Find OGRE includes and library |
---|
| 2 | # |
---|
| 3 | # This module defines |
---|
| 4 | # OGRE_INCLUDE_DIR |
---|
[2509] | 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 |
---|
[2509] | 14 | # Lots of simplifications by Adrian Friedli |
---|
[2585] | 15 | # Plugin checking by Reto Grieder |
---|
[1776] | 16 | # > www.orxonox.net < |
---|
[1505] | 17 | |
---|
[2583] | 18 | INCLUDE(FindPackageHandleStandardArgs) |
---|
| 19 | INCLUDE(HandleLibraryTypes) |
---|
| 20 | |
---|
[2509] | 21 | FIND_PATH(OGRE_INCLUDE_DIR Ogre.h |
---|
[2583] | 22 | PATHS $ENV{OGRE_HOME} /usr/local /usr |
---|
[2509] | 23 | PATH_SUFFIXES include include/OGRE |
---|
| 24 | ) |
---|
[2579] | 25 | FIND_LIBRARY(OGRE_LIBRARY_OPTIMIZED |
---|
| 26 | NAMES OgreMain |
---|
[2583] | 27 | PATHS $ENV{OGRE_HOME} /usr/local /usr |
---|
[2585] | 28 | PATH_SUFFIXES lib bin/Release bin/release Release release |
---|
[2579] | 29 | ) |
---|
| 30 | FIND_LIBRARY(OGRE_LIBRARY_DEBUG |
---|
[2583] | 31 | NAMES OgreMain${LIBRARY_DEBUG_POSTFIX} |
---|
| 32 | PATHS $ENV{OGRE_HOME} /usr/local /usr |
---|
[2585] | 33 | PATH_SUFFIXES lib bin/Debug bin/debug Debug debug |
---|
[2579] | 34 | ) |
---|
[1505] | 35 | |
---|
[2509] | 36 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(OGRE DEFAULT_MSG |
---|
[2579] | 37 | OGRE_LIBRARY_OPTIMIZED |
---|
[2509] | 38 | OGRE_INCLUDE_DIR |
---|
| 39 | ) |
---|
[1776] | 40 | |
---|
[2579] | 41 | # Set optimized and debug libraries |
---|
| 42 | HandleLibraryTypes(OGRE) |
---|
| 43 | |
---|
[2509] | 44 | MARK_AS_ADVANCED( |
---|
| 45 | OGRE_LIBRARY |
---|
[2579] | 46 | OGRE_LIBRARY_OPTIMIZED |
---|
| 47 | OGRE_LIBRARY_DEBUG |
---|
[2509] | 48 | OGRE_INCLUDE_DIR |
---|
| 49 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.