From c63cdf976d8fa170b141239bad554ac031a655bd Mon Sep 17 00:00:00 2001 From: Danilo Spinella Date: Wed, 19 Dec 2018 01:04:53 +0100 Subject: [PATCH] Add GLEW_EGL in cmake build --- build/cmake/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build/cmake/CMakeLists.txt b/build/cmake/CMakeLists.txt index bc38d30..10fcffd 100644 --- a/build/cmake/CMakeLists.txt +++ b/build/cmake/CMakeLists.txt @@ -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)