summaryrefslogtreecommitdiffstats
path: root/cmake/Hyperscan.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/Hyperscan.cmake')
-rw-r--r--cmake/Hyperscan.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/Hyperscan.cmake b/cmake/Hyperscan.cmake
new file mode 100644
index 0000000..dc19f49
--- /dev/null
+++ b/cmake/Hyperscan.cmake
@@ -0,0 +1,8 @@
+option (ENABLE_HYPERSCAN "Enable hyperscan for fast regexp processing [default: OFF]" OFF)
+
+if (ENABLE_HYPERSCAN MATCHES "ON")
+ ProcessPackage (HYPERSCAN LIBRARY hs INCLUDE hs.h INCLUDE_SUFFIXES
+ hs include/hs
+ ROOT ${HYPERSCAN_ROOT_DIR} MODULES libhs)
+ set (WITH_HYPERSCAN 1)
+endif ()