summaryrefslogtreecommitdiffstats
path: root/fluent-bit/cmake/FindMonkey.cmake
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--fluent-bit/cmake/FindMonkey.cmake20
1 files changed, 20 insertions, 0 deletions
diff --git a/fluent-bit/cmake/FindMonkey.cmake b/fluent-bit/cmake/FindMonkey.cmake
new file mode 100644
index 00000000..483f51aa
--- /dev/null
+++ b/fluent-bit/cmake/FindMonkey.cmake
@@ -0,0 +1,20 @@
+# Try to find Monkey HTTP Server core/library
+# ===========================================
+#
+# http://monkey-project.com
+#
+# Definitions:
+#
+# - MONKEY_FOUND : source code found
+# - MONKEY_INCLUDE_DIR: root include directory
+
+unset(MONKEY_INCLUDE_DIR CACHE)
+find_path(MONKEY_INCLUDE_DIR
+ NAMES monkey/mk_core.h monkey/mk_lib.h
+ PATHS ${PROJECT_SOURCE_DIR}/lib/monkey/include
+ CMAKE_FIND_ROOT_PATH_BOTH
+ )
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(Monkey DEFAULT_MSG MONKEY_INCLUDE_DIR)
+include(FeatureSummary)