mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-11 08:43:49 +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)
|
||||
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 ####
|
||||
|
||||
include_directories (${GLEW_DIR}/include)
|
||||
|
Loading…
Reference in New Issue
Block a user