mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2025-02-16 21:58:01 +00:00
Merge https://github.com/nigels-com/glew.git into master HEAD at Sat Dec 29 17:44:16 GMT 2018
This commit is contained in:
commit
82e4802538
@ -14,7 +14,7 @@
|
||||
#if defined(__REGAL_H__)
|
||||
#error Regal.h included before glew.h
|
||||
#endif
|
||||
#if defined(__glext_h_) || defined(__GLEXT_H_)
|
||||
#if defined(__glext_h_) || defined(__GLEXT_H_) || defined(__gl_glext_h_)
|
||||
#error glext.h included before glew.h
|
||||
#endif
|
||||
#if defined(__gl_ATI_h_)
|
||||
@ -30,6 +30,7 @@
|
||||
#define __X_GL_H
|
||||
#define __glext_h_
|
||||
#define __GLEXT_H_
|
||||
#define __gl_glext_h_
|
||||
#define __gl_ATI_h_
|
||||
|
||||
#if defined(_WIN32)
|
||||
|
@ -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