FindEGL.cmake 557 B

123456789101112131415161718192021
  1. # Filename: FindEGL.cmake
  2. # Authors: CFSworks (21 Oct, 2018)
  3. #
  4. # Usage:
  5. # find_package(EGL [REQUIRED] [QUIET])
  6. #
  7. # Once done this will define:
  8. # EGL_FOUND - system has EGL
  9. # EGL_INCLUDE_DIR - the include directory containing EGL/egl.h
  10. # EGL_LIBRARY - the library to link against for EGL
  11. #
  12. find_path(EGL_INCLUDE_DIR "EGL/egl.h")
  13. find_library(EGL_LIBRARY
  14. NAMES "EGL")
  15. mark_as_advanced(EGL_INCLUDE_DIR EGL_LIBRARY)
  16. include(FindPackageHandleStandardArgs)
  17. find_package_handle_standard_args(EGL DEFAULT_MSG EGL_INCLUDE_DIR EGL_LIBRARY)