FindEGL.cmake 464 B

12345678910111213141516171819
  1. # - Find EGL
  2. # Find the EGL includes and libraries
  3. #
  4. # Following variables are provided:
  5. # EGL_FOUND
  6. # True if EGL has been found
  7. # EGL_INCLUDE_DIR
  8. # The include directory of EGL
  9. # EGL_LIBRARY
  10. # EGL library list
  11. find_path(EGL_INCLUDE_DIR EGL/egl.h)
  12. find_library(EGL_LIBRARY NAMES EGL)
  13. include(FindPackageHandleStandardArgs)
  14. find_package_handle_standard_args(EGL DEFAULT_MSG EGL_LIBRARY EGL_INCLUDE_DIR)
  15. mark_as_advanced(EGL_LIBRARY EGL_INCLUDE_DIR)