From 4d0544e61a75083d7ea16793fd3b43cffe8a746c Mon Sep 17 00:00:00 2001 From: Roman Proskuryakov Date: Sun, 12 Jun 2016 20:11:53 +0300 Subject: [PATCH] Adds FindTinyXML.cmake --- cmake/FindTinyXML.cmake | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 cmake/FindTinyXML.cmake diff --git a/cmake/FindTinyXML.cmake b/cmake/FindTinyXML.cmake new file mode 100644 index 0000000000..d79a21c4a7 --- /dev/null +++ b/cmake/FindTinyXML.cmake @@ -0,0 +1,20 @@ +# Try to find TinyXML library + +# Once done this will define +# TinyXML_FOUND - System has the all required components. +# TinyXML_INCLUDE_DIRS - Include directory necessary for using the required components headers. +# TinyXML_LIBRARIES - Link these to use TinyXML. +# + +include(LibFindMacros) +include(PreprocessorUtils) + +libfind_pkg_detect(TinyXML tinyxml + FIND_PATH tinyxml.h + FIND_LIBRARY tinyxml +) +libfind_version_n_header(TinyXML + NAMES tinyxml.h + CONSTANTS TIXML_MAJOR_VERSION TIXML_MINOR_VERSION TIXML_PATCH_VERSION +) +libfind_process(TinyXML)