Add libcuckoo to test suite
[junction.git] / cmake / modules / FindTurf.cmake
1 #----------------------------------------------
2 # When Turf is found, it's basically as if TurfProjectDefs.cmake was included.
3 #
4 # Later, this might find binary packages too.
5 #
6 # Sets:
7 #    TURF_FOUND
8 #    TURF_ROOT - the root folder
9 #    TURF_INCLUDE_DIRS - pass to include_directories()
10 #    AddTurfTarget() - call this to actually add the target
11 #
12 # You'll want to set the compiler options before calling AddTurfTarget().
13 #----------------------------------------------
14
15 find_path(TURF_ROOT NAMES "CMakeLists.txt" "cmake/TurfProjectDefs.cmake" PATHS
16     "${CMAKE_CURRENT_SOURCE_DIR}/../turf"
17     "${CMAKE_SOURCE_DIR}/../turf"
18     "${CMAKE_CURRENT_LIST_DIR}/../../../turf")
19
20 if(TURF_ROOT)
21     include("${TURF_ROOT}/cmake/TurfProjectDefs.cmake")
22 else()
23     message("Can't find Turf!")
24     if(Turf_FIND_REQUIRED)
25         message(FATAL_ERROR "Missing required package Turf")
26     endif()
27 endif()