1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-29 12:20:41 +00:00
OpenMW/cmake/FindTinyXML.cmake
Roman Proskuryakov 39963a2c85 Removes PreprocessorUtils.cmake
Replaces get_version_from_n_defines -> libfind_version_n_header
2016-06-28 13:03:16 +03:00

20 lines
546 B
CMake

# 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)
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)