File: FindOpenGLES3.cmake

package info (click to toggle)
allegro5 2%3A5.2.11.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,160 kB
  • sloc: ansic: 111,580; cpp: 12,589; objc: 4,605; java: 2,845; python: 2,715; javascript: 1,238; sh: 1,008; makefile: 41; xml: 25; pascal: 24
file content (30 lines) | stat: -rw-r--r-- 1,054 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# - Find OpenGLES3
# Find the native OpenGLES3 includes and libraries
# (based on FindOpenGLES2.cmake)
#
#  OPENGLES3_INCLUDE_DIR - where to find GLES3/gl3.h, etc.
#  OPENGLES3_LIBRARIES   - List of libraries when using OpenGLES.
#  OPENGLES3_FOUND       - True if OpenGLES found.

if(OPENGLES3_INCLUDE_DIR)
    # Already in cache, be silent
    set(OPENGLES3_FIND_QUIETLY TRUE)
endif(OPENGLES3_INCLUDE_DIR)

find_path(OPENGLES3_INCLUDE_DIR GLES3/gl3.h)

find_library(OPENGLES3_gl_LIBRARY NAMES GLESv3)
find_library(OPENGLES3_egl_LIBRARY NAMES EGL)

# Handle the QUIETLY and REQUIRED arguments and set OPENGLES3_FOUND
# to TRUE if all listed variables are TRUE.
include(FindPackageHandleStandardArgs)
set(FPHSA_NAME_MISMATCHED TRUE)
find_package_handle_standard_args(OPENGLES3 DEFAULT_MSG
    OPENGLES3_INCLUDE_DIR OPENGLES3_gl_LIBRARY OPENGLES3_egl_LIBRARY)

set(OPENGLES3_LIBRARIES ${OPENGLES3_gl_LIBRARY} ${OPENGLES3_egl_LIBRARY})

mark_as_advanced(OPENGLES3_INCLUDE_DIR)
mark_as_advanced(OPENGLES3_gl_LIBRARY)
mark_as_advanced(OPENGLES3_egl_LIBRARY)