1
# - Try to find OpenGLES
2
# Once done this will define
4
# OPENGLES2_FOUND - system has OpenGLES
5
# OPENGLES2_INCLUDE_DIR - the GLES include directory
6
# OPENGLES2_LIBRARY - the GLES library
7
# OPENGLES2_LIBRARIES - Link this to use OpenGLES
10
FIND_PATH(OPENGLES2_INCLUDE_DIR GLES2/gl2.h
11
/usr/openwin/share/include
12
/opt/graphics/OpenGL/include /usr/X11R6/include
16
FIND_LIBRARY(OPENGLES2_LIBRARY
18
PATHS /opt/graphics/OpenGL/lib
20
/usr/shlib /usr/X11R6/lib
24
FIND_LIBRARY(OPENGLES2_EGL_LIBRARY
26
PATHS /usr/shlib /usr/X11R6/lib
30
# On Unix OpenGL most certainly always requires X11.
31
# Feel free to tighten up these conditions if you don't
32
# think this is always true.
33
# It's not true on OSX.
35
IF (OPENGLES2_LIBRARY)
41
SET (OPENGLES2_LIBRARIES ${X11_LIBRARIES})
44
ENDIF(OPENGLES2_LIBRARY)
46
SET( OPENGLES2_FOUND "NO" )
47
IF(OPENGLES2_LIBRARY AND OPENGLES2_EGL_LIBRARY)
48
SET( OPENGLES2_LIBRARIES ${OPENGLES2_LIBRARY} ${OPENGLES2_EGL_LIBRARY} ${OPENGLES2_LIBRARIES})
49
SET( OPENGLES2_FOUND "YES" )
50
ENDIF(OPENGLES2_LIBRARY AND OPENGLES2_EGL_LIBRARY)