mirror of
https://github.com/vgough/encfs.git
synced 2024-11-28 19:03:42 +01:00
27 lines
861 B
CMake
27 lines
861 B
CMake
|
# - Find TinyXML
|
||
|
# Find the native TinyXML includes and library
|
||
|
#
|
||
|
# TINYXML_FOUND - True if TinyXML found.
|
||
|
# TINYXML_INCLUDE_DIR - where to find tinyxml.h, etc.
|
||
|
# TINYXML_LIBRARIES - List of libraries when using TinyXML.
|
||
|
#
|
||
|
|
||
|
IF( TINYXML_INCLUDE_DIR )
|
||
|
# Already in cache, be silent
|
||
|
SET( TinyXML_FIND_QUIETLY TRUE )
|
||
|
ENDIF( TINYXML_INCLUDE_DIR )
|
||
|
|
||
|
FIND_PATH( TINYXML_INCLUDE_DIR "tinyxml2.h"
|
||
|
PATH_SUFFIXES "tinyxml2" )
|
||
|
|
||
|
FIND_LIBRARY( TINYXML_LIBRARIES
|
||
|
NAMES "tinyxml2"
|
||
|
PATH_SUFFIXES "tinyxml2" )
|
||
|
|
||
|
# handle the QUIETLY and REQUIRED arguments and set TINYXML_FOUND to TRUE if
|
||
|
# all listed variables are TRUE
|
||
|
INCLUDE( "FindPackageHandleStandardArgs" )
|
||
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS( "TinyXML" DEFAULT_MSG TINYXML_INCLUDE_DIR TINYXML_LIBRARIES )
|
||
|
|
||
|
MARK_AS_ADVANCED( TINYXML_INCLUDE_DIR TINYXML_LIBRARIES )
|