summaryrefslogtreecommitdiffstats
path: root/contrib/cmake/Finduriparser.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/cmake/Finduriparser.cmake')
-rw-r--r--contrib/cmake/Finduriparser.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/cmake/Finduriparser.cmake b/contrib/cmake/Finduriparser.cmake
new file mode 100644
index 0000000..5c0668f
--- /dev/null
+++ b/contrib/cmake/Finduriparser.cmake
@@ -0,0 +1,13 @@
+find_path(URIPARSER_INCLUDE_DIR NAMES uriparser/UriBase.h)
+find_library(URIPARSER_LIBRARY NAMES uriparser)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(URIPARSER DEFAULT_MSG URIPARSER_LIBRARY URIPARSER_INCLUDE_DIR)
+
+if (URIPARSER_FOUND)
+ set(URIPARSER_LIBRARIES ${URIPARSER_LIBRARY})
+ set(URIPARSER_INCLUDE_DIRS ${URIPARSER_INCLUDE_DIR})
+endif()
+
+mark_as_advanced(URIPARSER_INCLUDE_DIR)
+mark_as_advanced(URIPARSER_LIBRARY)