X-Git-Url: http://plrg.eecs.uci.edu/git/?p=junction.git;a=blobdiff_plain;f=cmake%2Fmodules%2FFindLibCuckoo.cmake;fp=cmake%2Fmodules%2FFindLibCuckoo.cmake;h=60da0981211251f418fb15c77c75aa5e724ff707;hp=0000000000000000000000000000000000000000;hb=77d3fab30b70ba23f9ffdf681cfe57a1b2e2edc2;hpb=e8712e58dc2b7a0e9df8c5779572be3f8c71ff8d diff --git a/cmake/modules/FindLibCuckoo.cmake b/cmake/modules/FindLibCuckoo.cmake new file mode 100644 index 0000000..60da098 --- /dev/null +++ b/cmake/modules/FindLibCuckoo.cmake @@ -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()