summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorMatthias Gabriel <matthias.gabriel@etit.tu-chemnitz.de>2017-03-06 08:24:12 (GMT)
committerMatthias Gabriel <matthias.gabriel@etit.tu-chemnitz.de>2017-03-06 08:24:12 (GMT)
commit7006652c1009742b505bb865e2d799b2ad3d74b2 (patch)
treed97b173122429f30e1349bb14ba3d3d6de974414 /contrib
parent8309a44ea39608f3e2adb60e7cad3e03fa2b1df6 (diff)
downloaduscxml-7006652c1009742b505bb865e2d799b2ad3d74b2.zip
uscxml-7006652c1009742b505bb865e2d799b2ad3d74b2.tar.gz
uscxml-7006652c1009742b505bb865e2d799b2ad3d74b2.tar.bz2
Allow external uriparser to be used
Diffstat (limited to 'contrib')
-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)