summaryrefslogtreecommitdiff
path: root/CMake/FindDRM.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'CMake/FindDRM.cmake')
-rw-r--r--CMake/FindDRM.cmake42
1 files changed, 0 insertions, 42 deletions
diff --git a/CMake/FindDRM.cmake b/CMake/FindDRM.cmake
deleted file mode 100644
index a5a4ebc0..00000000
--- a/CMake/FindDRM.cmake
+++ /dev/null
@@ -1,42 +0,0 @@
-#
-# Try to find X library and include path.
-# Once done this will define
-#
-# DRM_FOUND
-# DRM_INCLUDE_PATH
-# DRM_LIBRARY
-#
-
-FIND_PATH(DRM_INCLUDE_PATH
- NAMES
- drm.h
- PATHS
- ${CMAKE_INCLUDE_PATH}/include/libdrm/
- ~/include/libdrm/
- /usr/include/libdrm/
- /usr/local/include/libdrm/
- /sw/include/libdrm/
- /opt/local/include/libdrm/
- DOC "The directory where drm.h resides")
-FIND_LIBRARY(DRM_LIBRARY
- NAMES DRM drm
- PATHS
- ${CMAKE_LIBRARY_PATH}/lib/
- ~/lib/
- /usr/lib64
- /usr/lib
- /usr/local/lib64
- /usr/local/lib
- /sw/lib
- /opt/local/lib
- DOC "The DRM library")
-
-IF(DRM_INCLUDE_PATH)
- INCLUDE_DIRECTORIES(${DRM_INCLUDE_PATH})
- SET(DRM_FOUND 1 CACHE STRING "Set to 1 if DRM is found, 0 otherwise")
-ELSE(DRM_INCLUDE_PATH)
- SET(DRM_FOUND 0 CACHE STRING "Set to 1 if DRM is found, 0 otherwise")
-ENDIF(DRM_INCLUDE_PATH)
-
-MARK_AS_ADVANCED(DRM_FOUND)
-