mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-29 17:17:07 +00:00
Update CMakeLists.txt
X11 are part of OPENGL_LIBRARIES
This commit is contained in:
parent
e6cd59d9b5
commit
b1822129a0
@ -28,11 +28,6 @@ endif ()
|
|||||||
find_package (OpenGL REQUIRED)
|
find_package (OpenGL REQUIRED)
|
||||||
set (GLEW_LIBRARIES ${OPENGL_LIBRARIES})
|
set (GLEW_LIBRARIES ${OPENGL_LIBRARIES})
|
||||||
|
|
||||||
if (UNIX)
|
|
||||||
find_package (X11 REQUIRED)
|
|
||||||
list (APPEND GLEW_LIBRARIES ${X11_LIBRARIES})
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
add_definitions (-DGLEW_BUILD -DGLEW_NO_GLU)
|
add_definitions (-DGLEW_BUILD -DGLEW_NO_GLU)
|
||||||
|
|
||||||
include_directories (${PROJECT_SOURCE_DIR}/include)
|
include_directories (${PROJECT_SOURCE_DIR}/include)
|
||||||
|
Loading…
Reference in New Issue
Block a user