# FindDRM.cmake # Locate the Direct Rendering Manager (DRM) library find_path(DRM_INCLUDE_DIR NAMES drm/drm.h PATHS ${CMAKE_FIND_ROOT_PATH}/usr/include /usr/include /usr/local/include NO_DEFAULT_PATH ) find_library(DRM_LIBRARY NAMES drm PATHS ${CMAKE_FIND_ROOT_PATH}/usr/lib /usr/lib /usr/local/lib NO_DEFAULT_PATH ) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(DRM REQUIRED_VARS DRM_INCLUDE_DIR DRM_LIBRARY VERSION_VAR DRM_VERSION ) mark_as_advanced(DRM_INCLUDE_DIR DRM_LIBRARY)