From 4d9ce05bb4f0992d72ad5ce229301f1a78f31cb9 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Tue, 15 Sep 2015 20:50:51 +0100 Subject: cmake: Use the FindWaffle.cmake script provided by Waffle itself. --- cmake/FindWaffle.cmake | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 cmake/FindWaffle.cmake (limited to 'cmake') diff --git a/cmake/FindWaffle.cmake b/cmake/FindWaffle.cmake deleted file mode 100644 index c463004b..00000000 --- a/cmake/FindWaffle.cmake +++ /dev/null @@ -1,33 +0,0 @@ -# - try to find Waffle include dirs and library - -if (ANDROID) - set (Android_root_path "$ENV{OUT}") - if (Android_root_path) - set (Waffle_INC_SEARCH_PATH "$ENV{OUT}/obj/include/waffle-1" - "$ENV{OUT}/obj/lib" - "$ENV{ANDROID_BUILD_TOP}/external/waffle" - ) - - set (Waffle_LIB_SEARCH_PATH "$ENV{OUT}/obj/lib") - endif () - - find_path (Waffle_INCLUDE_DIRS waffle.h - PATHS ${Waffle_INC_SEARCH_PATH} - DOC "The directory where waffle.h resides" - NO_CMAKE_FIND_ROOT_PATH NO_DEFAULT_PATH - ) - - find_library (Waffle_LIBRARIES waffle-1 - PATHS ${Waffle_LIB_SEARCH_PATH} - DOC "The directory where libwaffle-1 resides" - NO_CMAKE_FIND_ROOT_PATH NO_DEFAULT_PATH - ) -else () - find_package (PkgConfig) - if (PKG_CONFIG_FOUND) - pkg_search_module (Waffle waffle-1) - endif () -endif () - -include (FindPackageHandleStandardArgs) -find_package_handle_standard_args (Waffle DEFAULT_MSG Waffle_LIBRARIES Waffle_INCLUDE_DIRS) -- cgit v1.2.3