mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49:17 +01:00
00f7c6ba43
it. Allow for TinyXML in standard install location.
34 lines
796 B
CMake
34 lines
796 B
CMake
# - Try to find tinyxml
|
|
#
|
|
# Once done this will define
|
|
# Tinyxml_FOUND - System has tinyxml
|
|
# Tinyxml_INCLUDE_DIRS - The tinyxml include directories
|
|
# Tinyxml_LIBRARIES - The libraries needed to use tinyxml
|
|
|
|
find_package(PkgConfig)
|
|
pkg_check_modules(PC_TINYXML tinyxml)
|
|
|
|
find_path(TINYXML_INCLUDE_DIR tinyxml.h
|
|
HINTS
|
|
${PC_TINYXML_INCLUDEDIR}
|
|
${PC_TINYXML_INCLUDE_DIRS}
|
|
PATHS
|
|
${PC_TINYXML_INCLUDE_DIRS}
|
|
)
|
|
|
|
find_library(TINYXML_LIBRARY tinyxml
|
|
HINTS
|
|
${PC_TINYXML_LIBDIR}
|
|
${PC_TINYXML_LIBRARY_DIRS}
|
|
PATHS
|
|
${PC_TINYXML_LIBRARY_DIRS}
|
|
)
|
|
|
|
mark_as_advanced(TINYXML_INCLUDE_DIR TINYXML_LIBRARY)
|
|
|
|
if(TINYXML_INCLUDE_DIR)
|
|
set(Tinyxml_FOUND ON)
|
|
set(Tinyxml_INCLUDE_DIRS ${TINYXML_INCLUDE_DIR})
|
|
set(Tinyxml_LIBRARIES ${TINYXML_LIBRARY})
|
|
endif(TINYXML_INCLUDE_DIR)
|