Simplify CMake scripts
[junction.git] / cmake / modules / FindTurf.cmake
diff --git a/cmake/modules/FindTurf.cmake b/cmake/modules/FindTurf.cmake
deleted file mode 100644 (file)
index d9a684a..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-#----------------------------------------------
-# This find module locates the Turf *source*.
-#
-# Later, it might find binary packages too.
-#
-# Sets:
-#    TURF_FOUND
-#    TURF_ROOT - the root folder, containing CMakeLists.txt
-#    TURF_INCLUDE_DIRS - pass to include_directories()
-#----------------------------------------------
-
-if(TURF_ROOT)
-    get_filename_component(fullPath "${TURF_ROOT}" ABSOLUTE)
-    if(EXISTS "${fullPath}/cmake/turf_config.h.in")
-        set(TURF_FOUND TRUE)
-    endif()
-else()
-    find_path(TURF_ROOT "cmake/turf_config.h.in" PATHS
-        "${CMAKE_CURRENT_SOURCE_DIR}/../turf"
-        "${CMAKE_SOURCE_DIR}/../turf"
-        "${CMAKE_CURRENT_LIST_DIR}/../../../turf")
-    if(TURF_ROOT)
-        set(TURF_FOUND TRUE)
-    endif()
-endif()
-
-if(NOT TURF_FOUND)
-    message("Can't find Turf!")
-    if(Turf_FIND_REQUIRED)
-        message(FATAL_ERROR "Missing required package Turf")
-    endif()
-endif()