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:
parent
94807a7d97
commit
8bf738e673
@ -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()
|
||||||
|
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user