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

FindTinyXML.cmake (1132B)


      1 SET( TinyXML_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( TinyXML_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/dependencies/TinyXML )
      7  
      8 IF( EXISTS ${TinyXML_INCLUDE_DIR} )
      9     SET( TinyXML_FOUND TRUE )
     10     FILE(GLOB TinyXML_source ${TinyXML_INCLUDE_DIR}/*.cpp)
     11     ADD_LIBRARY(TinyXML ${TinyXML_source})
     12     SET( TinyXML_LIBRARIES TinyXML)    
     13 ENDIF( EXISTS ${TinyXML_INCLUDE_DIR} )
     14  
     15 IF( NOT TinyXML_FOUND)
     16     IF( NOT TinyXML_INCLUDE_DIR )
     17         IF (TinyXML_FIND_REQUIRED)
     18 	    	MESSAGE(FATAL_ERROR "Could not find TinyXML")
     19     	ENDIF (TinyXML_FIND_REQUIRED)
     20     ENDIF( NOT TinyXML_INCLUDE_DIR )
     21 ELSE ( NOT TinyXML_FOUND)
     22     INCLUDE_DIRECTORIES("${TinyXML_INCLUDE_DIR}")
     23 ENDIF( NOT TinyXML_FOUND)
     24  
     25  
     26 # Finally, display informations if not in quiet mode
     27 IF( NOT TinyXML_FIND_QUIETLY )
     28   MESSAGE( STATUS "TinyXML found " )
     29   MESSAGE( STATUS " libraries : ${TinyXML_LIBRARIES}" )
     30   MESSAGE( STATUS " includes : ${TinyXML_INCLUDE_DIR}" )
     31 ENDIF( NOT TinyXML_FIND_QUIETLY )
     32  
     33 MARK_AS_ADVANCED(
     34   TinyXML_INCLUDE_DIR
     35   TinyXML_LIBRARIES
     36 )