mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
b6ca47e128
Ported sfml-pi DRM/KMS backend written by @mickelson Port co-authored by @substring Co-authored-by: Andrew Mickelson <andrew.mickelson@gmail.com> Co-authored-by: Gil Delescluse <frog2wah@gmail.com>
19 lines
396 B
CMake
19 lines
396 B
CMake
#
|
|
# Try to find EGL library and include path.
|
|
# Once done this will define
|
|
#
|
|
# DRM_FOUND
|
|
# DRM_INCLUDE_PATH
|
|
# DRM_LIBRARY
|
|
#
|
|
|
|
if(PKG_CONFIG_FOUND)
|
|
pkg_check_modules(PC_DRM drm QUIET)
|
|
endif()
|
|
|
|
find_path(DRM_INCLUDE_DIR NAMES libdrm/drm.h)
|
|
find_library(DRM_LIBRARY NAMES drm)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(DRM DEFAULT_MSG DRM_LIBRARY DRM_INCLUDE_DIR)
|