# Find OGRE includes and library # # This module defines # OGRE_INCLUDE_DIR # OGRE_LIBRARY, the library to link against to use OGRE. # OGRE_FOUND, If false, do not try to use OGRE # # Copyright © 2007, Matt Williams # Modified by Nicolas Schlumberger to make it work on the Tardis-Infrastucture of the ETH Zurich # # Redistribution and use is allowed according to the terms of the BSD license. # # Several changes and additions by Fabian 'x3n' Landau # Lots of simplifications by Adrian Friedli # > www.orxonox.net < FIND_PATH(OGRE_INCLUDE_DIR Ogre.h PATHS $ENV{OGREDIR} /usr/local /usr PATH_SUFFIXES include include/OGRE ) #SET(OGRE_LIBRARIES debug OgreMain_d optimized OgreMain) FIND_LIBRARY(OGRE_LIBRARY NAMES OgreMain PATHS $ENV{OGREDIR} /usr/local /usr PATH_SUFFIXES lib ) INCLUDE(FindPackageHandleStandardArgs) FIND_PACKAGE_HANDLE_STANDARD_ARGS(OGRE DEFAULT_MSG OGRE_LIBRARY OGRE_INCLUDE_DIR ) MARK_AS_ADVANCED( OGRE_LIBRARY OGRE_INCLUDE_DIR )