tibia-client/src/framework/cmake/FindOpenGLES2.cmake

17 lines
758 B
CMake
Raw Normal View History

# Try to find the OpenGLES2 library
# OPENGLES2_FOUND - system has OpenGL ES 2.0
# OPENGLES2_INCLUDE_DIR - the OpenGL ES 2.0 include directory
# OPENGLES2_LIBRARY - the OpenGL ES 2.0 library
2011-12-01 20:38:46 +01:00
FIND_PATH(OPENGLES2_INCLUDE_DIR NAMES GLES2/gl2.h)
2013-11-13 16:55:34 +01:00
SET(_OPENGLES2_STATIC_LIBS libGLESv2.a)
SET(_OPENGLES2_SHARED_LIBS libGLESv2.dll.a GLESv2)
2013-11-13 17:33:29 +01:00
#IF(USE_STATIC_LIBS)
# FIND_LIBRARY(OPENGLES2_LIBRARY NAMES ${_OPENGLES2_STATIC_LIBS} ${_OPENGLES2_SHARED_LIBS})
#ELSE()
2013-11-13 16:55:34 +01:00
FIND_LIBRARY(OPENGLES2_LIBRARY NAMES ${_OPENGLES2_SHARED_LIBS} ${_OPENGLES2_STATIC_LIBS})
2013-11-13 17:33:29 +01:00
#ENDIF()
2011-12-01 20:38:46 +01:00
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenGLES2 DEFAULT_MSG OPENGLES2_LIBRARY OPENGLES2_INCLUDE_DIR)
2013-11-13 16:55:34 +01:00
MARK_AS_ADVANCED(OPENGLES2_LIBRARY OPENGLES2_INCLUDE_DIR)