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:
@@ -8,12 +8,23 @@ OPTION(USE_PCH "Use precompiled header" ON)
|
||||
OPTION(NO_CONSOLE "Disable console window on Windows" OFF)
|
||||
OPTION(HANDLE_EXCEPTIONS "Generate crash reports" OFF)
|
||||
OPTION(FORBIDDEN_FUNCTIONS "Enable forbidden lua functions" ON)
|
||||
OPTION(USE_GLES "Use OpenGLES (for mobiles devices)" OFF)
|
||||
|
||||
# find needed packages
|
||||
SET(Boost_USE_STATIC_LIBS ON)
|
||||
SET(Boost_USE_MULTITHREADED OFF)
|
||||
FIND_PACKAGE(Boost COMPONENTS system REQUIRED)
|
||||
FIND_PACKAGE(OpenGL REQUIRED)
|
||||
|
||||
IF(USE_GLES)
|
||||
FIND_PACKAGE(OpenGLES REQUIRED)
|
||||
FIND_PACKAGE(EGL REQUIRED)
|
||||
SET(OPENGL_INCLUDE_DIR ${OPENGLES_INCLUDE_DIR} ${EGL_INCLUDE_DIR})
|
||||
SET(OPENGL_LIBRARIES ${OPENGLES_LIBRARY} ${EGL_LIBRARY})
|
||||
ADD_DEFINITIONS(-DGLES -DEGL)
|
||||
ELSE(USE_GLES)
|
||||
FIND_PACKAGE(OpenGL REQUIRED)
|
||||
ENDIF(USE_GLES)
|
||||
|
||||
FIND_PACKAGE(Lua REQUIRED)
|
||||
FIND_PACKAGE(PhysFS REQUIRED)
|
||||
FIND_PACKAGE(GMP REQUIRED)
|
||||
|
Reference in New Issue
Block a user