zibbr

Random 3d and p2p stuff that was originally the beginnings of an overly ambitious p2p virtual world thingy
git clone https://code.literati.org/zibbr.git
Log | Files | Refs

FindOgreMax.cmake (1139B)


      1 SET( OgreMax_DEFINITIONS "" )
      2  
      3 ##
      4 # You're going to have to edit this file if you intend to use it for your own project
      5 ##
      6 SET( OgreMax_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/dependencies/OgreMax )
      7  
      8 IF( EXISTS ${OgreMax_INCLUDE_DIR} )
      9     SET( OgreMax_FOUND TRUE )
     10     FILE(GLOB OgreMax_source ${OgreMax_INCLUDE_DIR}/*.cpp)
     11     ADD_LIBRARY(OgreMax ${OgreMax_source})
     12 
     13     SET( OgreMax_LIBRARIES OgreMax TinyXML)
     14 ENDIF( EXISTS ${OgreMax_INCLUDE_DIR} )
     15  
     16 IF( NOT OgreMax_FOUND)
     17     IF( NOT OgreMax_INCLUDE_DIR )
     18         IF (OgreMax_FIND_REQUIRED)
     19 	    	MESSAGE(FATAL_ERROR "Could not find OgreMax")
     20     	ENDIF (OgreMax_FIND_REQUIRED)
     21     ENDIF( NOT OgreMax_INCLUDE_DIR )
     22 ELSE ( NOT OgreMax_FOUND)
     23     INCLUDE_DIRECTORIES("${OgreMax_INCLUDE_DIR}")
     24 ENDIF( NOT OgreMax_FOUND)
     25  
     26  
     27 # Finally, display informations if not in quiet mode
     28 IF( NOT OgreMax_FIND_QUIETLY )
     29   MESSAGE( STATUS "OgreMax found " )
     30   MESSAGE( STATUS " libraries : ${OgreMax_LIBRARIES}" )
     31   MESSAGE( STATUS " includes : ${OgreMax_INCLUDE_DIR}" )
     32 ENDIF( NOT OgreMax_FIND_QUIETLY )
     33  
     34 MARK_AS_ADVANCED(
     35   OgreMax_INCLUDE_DIR
     36   OgreMax_LIBRARIES
     37 )