Add libcuckoo to test suite
[junction.git] / cmake / modules / FindLibCuckoo.cmake
diff --git a/cmake/modules/FindLibCuckoo.cmake b/cmake/modules/FindLibCuckoo.cmake
new file mode 100644 (file)
index 0000000..60da098
--- /dev/null
@@ -0,0 +1,11 @@
+find_path(LIBCUCKOO_ROOT include/libcuckoo/cuckoohash_map.hh)
+
+if(LIBCUCKOO_ROOT)
+    set(LIBCUCKOO_FOUND TRUE)
+    set(LIBCUCKOO_INCLUDE_DIRS "${LIBCUCKOO_ROOT}/include")
+else()
+    message("Can't find libcuckoo!")
+    if(LibCuckoo_FIND_REQUIRED)
+        message(FATAL_ERROR "Missing required package libcuckoo")
+    endif()
+endif()