1 # - Try to find OpenGL ES
\r
2 # Once done this will define
\r
4 # OPENGLES_FOUND - system has OpenGL ES
\r
5 # OPENGLES_EGL_FOUND - system has EGL
\r
6 # OPENGLES_LIBRARIES - Link these to use OpenGL ES and EGL
\r
8 # If you want to use just GL ES you can use these values
\r
9 # OPENGLES_GLES_LIBRARY - Path to OpenGL ES Library
\r
10 # OPENGLES_EGL_LIBRARY - Path to EGL Library
\r
12 FIND_LIBRARY(OPENGLES_GLES_LIBRARY
\r
13 NAMES GLESv1_CM libGLESv1_CM gles_cm libgles_cm
\r
17 /usr/local/X11R6/lib
\r
26 FIND_LIBRARY(OPENGLES_EGL_LIBRARY
\r
31 /usr/local/X11R6/lib
\r
40 IF(OPENGLES_GLES_LIBRARY)
\r
41 SET(OPENGLES_FOUND "YES")
\r
42 SET(OPENGLES_LIBRARIES ${OPENGLES_GLES_LIBRARY} ${OPENGLES_LIBRARIES})
\r
43 IF(OPENGLES_EGL_LIBRARY)
\r
44 SET(OPENGLES_EGL_FOUND "YES")
\r
45 SET(OPENGLES_LIBRARIES ${OPENGLES_EGL_LIBRARY} ${OPENGLES_LIBRARIES})
\r
47 SET(OPENGLES_EGL_FOUND "NO")
\r