diff options
Diffstat (limited to 'cmake/Modules')
-rw-r--r-- | cmake/Modules/FindDRM.cmake | 18 | ||||
-rw-r--r-- | cmake/Modules/FindGBM.cmake | 18 | ||||
-rw-r--r-- | cmake/Modules/FindVORBIS.cmake (renamed from cmake/Modules/FindVorbis.cmake) | 0 |
3 files changed, 36 insertions, 0 deletions
diff --git a/cmake/Modules/FindDRM.cmake b/cmake/Modules/FindDRM.cmake new file mode 100644 index 0000000..23b38b1 --- /dev/null +++ b/cmake/Modules/FindDRM.cmake @@ -0,0 +1,18 @@ +# +# 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) diff --git a/cmake/Modules/FindGBM.cmake b/cmake/Modules/FindGBM.cmake new file mode 100644 index 0000000..4deb5eb --- /dev/null +++ b/cmake/Modules/FindGBM.cmake @@ -0,0 +1,18 @@ +# +# Try to find GBM library and include path. +# Once done this will define +# +# GBM_FOUND +# GBM_INCLUDE_PATH +# GBM_LIBRARY +# + +if(PKG_CONFIG_FOUND) + pkg_check_modules(PC_GBM gbm QUIET) +endif() + +find_path(GBM_INCLUDE_DIR NAMES gbm.h) +find_library(GBM_LIBRARY NAMES gbm) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(GBM DEFAULT_MSG GBM_LIBRARY GBM_INCLUDE_DIR) diff --git a/cmake/Modules/FindVorbis.cmake b/cmake/Modules/FindVORBIS.cmake index e285411..e285411 100644 --- a/cmake/Modules/FindVorbis.cmake +++ b/cmake/Modules/FindVORBIS.cmake |