1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00

0029514: Configuration, CMake - OpenGL ES should be available for Linux

Allow optionally building OCCT with GLESv2 and EGL on Linux
This commit is contained in:
apn 2018-02-19 12:24:55 +03:00 committed by bugmaster
parent 94807a7d97
commit 8bf738e673
2 changed files with 6 additions and 2 deletions

View File

@ -583,7 +583,7 @@ else()
endif() endif()
# OpenGL ES 2.0 # OpenGL ES 2.0
if (WIN32 AND CAN_USE_GLES2) if (CAN_USE_GLES2)
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsStore") if ("${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsStore")
set (USE_GLES2 ON) set (USE_GLES2 ON)
else() else()

View File

@ -110,7 +110,11 @@ if (WIN32)
set (CSF_OpenGlLibs "EGL GLESv2") set (CSF_OpenGlLibs "EGL GLESv2")
elseif (UNIX) elseif (UNIX)
set (CSF_ThreadLibs "pthread rt stdc++") set (CSF_ThreadLibs "pthread rt stdc++")
set (CSF_OpenGlLibs "GL") if (USE_GLES2)
set (CSF_OpenGlLibs "EGL GLESv2")
else()
set (CSF_OpenGlLibs "GL")
endif()
set (CSF_XwLibs "X11 Xext Xmu Xi") set (CSF_XwLibs "X11 Xext Xmu Xi")
set (CSF_dl "dl") set (CSF_dl "dl")
endif() endif()