From c80e746965a22a71c5982d9d8070e89353d33482 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Wed, 25 Feb 2015 15:11:38 +0800 Subject: cmake: remove unused FindDRM.cmake --- cmake/FindDRM.cmake | 57 ----------------------------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 cmake/FindDRM.cmake (limited to 'cmake') diff --git a/cmake/FindDRM.cmake b/cmake/FindDRM.cmake deleted file mode 100644 index 616fd235..00000000 --- a/cmake/FindDRM.cmake +++ /dev/null @@ -1,57 +0,0 @@ -# - FindDRM -# -# Copyright 2015 LunarG, Inc. - -find_package(PkgConfig) - -if(NOT DRM_FIND_COMPONENTS) - set(DRM_FIND_COMPONENTS libdrm) -endif() - -include(FindPackageHandleStandardArgs) -set(DRM_FOUND true) -set(DRM_INCLUDE_DIRS "") -set(DRM_LIBRARIES "") -foreach(comp ${DRM_FIND_COMPONENTS}) - # component name - string(REPLACE "lib" "" compname ${comp}) - string(TOUPPER ${compname} compname) - # header name - if(comp STREQUAL "libdrm") - set(headername xf86drm.h) - elseif(comp STREQUAL "libdrm_intel") - set(headername intel_bufmgr.h) - else() - string(REPLACE "libdrm_" "" headername ${comp}) - endif() - # library name - string(REPLACE "lib" "" libname ${comp}) - - pkg_check_modules(PC_${comp} QUIET ${comp}) - - find_path(${compname}_INCLUDE_DIR NAMES ${headername} - HINTS - ${PC_${comp}_INCLUDEDIR} - ${PC_${comp}_INCLUDE_DIRS} - ) - - find_library(${compname}_LIBRARY NAMES ${libname} - HINTS - ${PC_${comp}_LIBDIR} - ${PC_${comp}_LIBRARY_DIRS} - ) - - find_package_handle_standard_args(${comp} - FOUND_VAR ${comp}_FOUND - REQUIRED_VARS ${compname}_INCLUDE_DIR ${compname}_LIBRARY) - mark_as_advanced(${compname}_INCLUDE_DIR ${compname}_LIBRARY) - - list(APPEND DRM_INCLUDE_DIRS ${${compname}_INCLUDE_DIR}) - list(APPEND DRM_LIBRARIES ${${compname}_LIBRARY}) - - if(NOT ${comp}_FOUND) - set(DRM_FOUND false) - endif() -endforeach() - -list(REMOVE_DUPLICATES DRM_INCLUDE_DIRS) -- cgit v1.2.3