mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 21:13:26 +02:00
options for using OpenGLES (not functional yet)
This commit is contained in:
10
cmake/FindEGL.cmake
Normal file
10
cmake/FindEGL.cmake
Normal file
@@ -0,0 +1,10 @@
|
||||
# Try to find the EGL librairy
|
||||
# EGL_FOUND - system has EGL
|
||||
# EGL_INCLUDE_DIR - the EGL include directory
|
||||
# EGL_LIBRARY - the EGL library
|
||||
|
||||
FIND_PATH(EGL_INCLUDE_DIR egl.h PATH_SUFFIXES EGL)
|
||||
FIND_LIBRARY(EGL_LIBRARY NAMES EGL)
|
||||
INCLUDE(FindPackageHandleStandardArgs)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(EGL DEFAULT_MSG EGL_LIBRARY EGL_INCLUDE_DIR)
|
||||
MARK_AS_ADVANCED(EGL_LIBRARY EGL_INCLUDE_DIR)
|
10
cmake/FindOpenGLES.cmake
Normal file
10
cmake/FindOpenGLES.cmake
Normal file
@@ -0,0 +1,10 @@
|
||||
# Try to find the OpenGLES librairy
|
||||
# OPENGLES_FOUND - system has OpenGLES
|
||||
# OPENGLES_INCLUDE_DIR - the OpenGLES include directory
|
||||
# OPENGLES_LIBRARY - the OpenGLES library
|
||||
|
||||
FIND_PATH(OPENGLES_INCLUDE_DIR gl2.h PATH_SUFFIXES GLES2)
|
||||
FIND_LIBRARY(OPENGLES_LIBRARY NAMES GLESv2)
|
||||
INCLUDE(FindPackageHandleStandardArgs)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenGLES DEFAULT_MSG OPENGLES_LIBRARY OPENGLES_INCLUDE_DIR)
|
||||
MARK_AS_ADVANCED(OPENGLES_LIBRARY OPENGLES_INCLUDE_DIR)
|
Reference in New Issue
Block a user