diff options
Diffstat (limited to 'tools/cmake/modules/FindLibXML2.cmake')
-rw-r--r-- | tools/cmake/modules/FindLibXML2.cmake | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/cmake/modules/FindLibXML2.cmake b/tools/cmake/modules/FindLibXML2.cmake new file mode 100644 index 0000000000..1daaeb07b7 --- /dev/null +++ b/tools/cmake/modules/FindLibXML2.cmake @@ -0,0 +1,20 @@ +find_path(LibXML2_ROOT_DIR NAMES include/libxml2/libxml/xpath.h) +find_library(LibXML2_LIBRARIES + NAMES xml2 + HINTS ${LibXML2_ROOT_DIR}/lib +) +find_path(LibXML2_INCLUDE_DIR + NAMES libxml/tree.h + HINTS ${LibXML2_ROOT_DIR}/include/libxml2 +) +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(LibXML2 DEFAULT_MSG + LibXML2_LIBRARIES + LibXML2_INCLUDE_DIR +) + +mark_as_advanced( + LibXML2_ROOT_DIR + LibXML2_LIBRARIES + LibXML2_INCLUDE_DIR +)
\ No newline at end of file |