mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2025-03-23 00:56:48 +00:00
Add GLEW_EGL in cmake build
This commit is contained in:
parent
8b2d34956c
commit
c63cdf976d
@ -84,6 +84,16 @@ if (GLEW_OSMESA)
|
|||||||
set (X11_LIBRARIES)
|
set (X11_LIBRARIES)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
#### EGL ####
|
||||||
|
|
||||||
|
if (GLEW_EGL AND UNIX)
|
||||||
|
add_definitions (-DGLEW_EGL)
|
||||||
|
if (OpenGL::EGL)
|
||||||
|
message (FATAL_ERROR "EGL library set but not found.")
|
||||||
|
endif()
|
||||||
|
set (GLEW_LIBRARIES ${OPENGL_LIBRARIES} ${OPENGL_egl_LIBRARY})
|
||||||
|
endif ()
|
||||||
|
|
||||||
#### GLEW ####
|
#### GLEW ####
|
||||||
|
|
||||||
include_directories (${GLEW_DIR}/include)
|
include_directories (${GLEW_DIR}/include)
|
||||||
|
Loading…
Reference in New Issue
Block a user