1 #----------------------------------------------
2 # This find module locates the Turf *source*.
4 # Later, it might find binary packages too.
8 # TURF_ROOT - the root folder, containing CMakeLists.txt
9 # TURF_INCLUDE_DIRS - pass to include_directories()
10 #----------------------------------------------
13 get_filename_component(fullPath "${TURF_ROOT}" ABSOLUTE)
14 if(EXISTS "${fullPath}/cmake/turf_config.h.in")
18 find_path(TURF_ROOT "cmake/turf_config.h.in" PATHS
19 "${CMAKE_CURRENT_SOURCE_DIR}/../turf"
20 "${CMAKE_SOURCE_DIR}/../turf"
21 "${CMAKE_CURRENT_LIST_DIR}/../../../turf")
28 message("Can't find Turf!")
29 if(Turf_FIND_REQUIRED)
30 message(FATAL_ERROR "Missing required package Turf")