Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/FlappyOrx_HS17/cmake/tools/FindOGRE.cmake @ 11751

Last change on this file since 11751 was 8351, checked in by rgrieder, 14 years ago

Merged kicklib2 branch back to trunk (includes former branches ois_update, mac_osx and kicklib).

Notes for updating

Linux:
You don't need an extra package for CEGUILua and Tolua, it's already shipped with CEGUI.
However you do need to make sure that the OgreRenderer is installed too with CEGUI 0.7 (may be a separate package).
Also, Orxonox now recognises if you install the CgProgramManager (a separate package available on newer Ubuntu on Debian systems).

Windows:
Download the new dependency packages versioned 6.0 and use these. If you have problems with that or if you don't like the in game console problem mentioned below, you can download the new 4.3 version of the packages (only available for Visual Studio 2005/2008).

Key new features:

  • *Support for Mac OS X*
  • Visual Studio 2010 support
  • Bullet library update to 2.77
  • OIS library update to 1.3
  • Support for CEGUI 0.7 —> Support for Arch Linux and even SuSE
  • Improved install target
  • Compiles now with GCC 4.6
  • Ogre Cg Shader plugin activated for Linux if available
  • And of course lots of bug fixes

There are also some regressions:

  • No support for CEGUI 0.5, Ogre 1.4 and boost 1.35 - 1.39 any more
  • In game console is not working in main menu for CEGUI 0.7
  • Tolua (just the C lib, not the application) and CEGUILua libraries are no longer in our repository. —> You will need to get these as well when compiling Orxonox
  • And of course lots of new bugs we don't yet know about
  • Property svn:eol-style set to native
File size: 1.5 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
10# of the ETH Zurich (removed later on)
11#
12# Redistribution and use is allowed according to the terms of the BSD license.
13#
14# Several changes and additions by Fabian 'x3n' Landau
15# Lots of simplifications by Adrian Friedli
16# Version checking by Reto Grieder
17#                 > www.orxonox.net <
18
19INCLUDE(DetermineVersion)
20INCLUDE(FindPackageHandleAdvancedArgs)
21INCLUDE(HandleLibraryTypes)
22
23FIND_PATH(OGRE_INCLUDE_DIR Ogre.h
24  PATHS $ENV{OGRE_HOME}
25  PATH_SUFFIXES include include/OGRE
26)
27FIND_LIBRARY(OGRE_LIBRARY_OPTIMIZED
28  NAMES OgreMain Ogre
29  PATHS $ENV{OGRE_HOME}
30  PATH_SUFFIXES lib bin/Release bin/release Release release
31)
32FIND_LIBRARY(OGRE_LIBRARY_DEBUG
33  NAMES OgreMaind OgreMain_d OgreMainD OgreMain_D Ogred Ogre_d OgreD Ogre_d
34  PATHS $ENV{OGRE_HOME}
35  PATH_SUFFIXES lib bin/Debug bin/debug Debug debug
36)
37
38# Inspect OgrePrerquisites.h for the version number
39DETERMINE_VERSION(OGRE ${OGRE_INCLUDE_DIR}/OgrePrerequisites.h)
40
41# Handle the REQUIRED argument and set OGRE_FOUND
42# Also check the version requirements
43FIND_PACKAGE_HANDLE_ADVANCED_ARGS(OGRE DEFAULT_MSG ${OGRE_VERSION}
44  OGRE_LIBRARY_OPTIMIZED
45  OGRE_INCLUDE_DIR
46)
47
48# Collect optimized and debug libraries
49HANDLE_LIBRARY_TYPES(OGRE)
50
51MARK_AS_ADVANCED(
52  OGRE_INCLUDE_DIR
53  OGRE_LIBRARY_OPTIMIZED
54  OGRE_LIBRARY_DEBUG
55)
Note: See TracBrowser for help on using the repository browser.