File: FindOpenGLES2.cmake

package info (click to toggle)
qt-gstreamer 1.2.0-5.2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,724 kB
  • sloc: cpp: 20,240; yacc: 156; lex: 125; makefile: 26
file content (20 lines) | stat: -rw-r--r-- 719 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# - Try to find OpenGLES2
# Once done this will define
#
#  OPENGLES2_FOUND           - system has OpenGLES2
#  OPENGLES2_INCLUDE_DIR     - the GLES2 include directory
#  OPENGLES2_LIBRARY	    - the GLES2 library
#
# Copyright (c) 2012, George Kiagiadakis <kiagiadakis.george@gmail.com>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.

find_path(OPENGLES2_INCLUDE_DIR GLES2/gl2.h)
find_library(OPENGLES2_LIBRARY NAMES GLESv2)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(OpenGLES2 DEFAULT_MSG OPENGLES2_INCLUDE_DIR OPENGLES2_LIBRARY)

mark_as_advanced(OPENGLES2_INCLUDE_DIR OPENGLES2_LIBRARY)