From b63654a40c9840975263ef1ac004ed6afdc6d102 Mon Sep 17 00:00:00 2001 From: vlj Date: Wed, 3 Sep 2014 17:38:14 +0200 Subject: [PATCH] Detect Glew in CMake --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 19ad08fbf..fd6fd4db7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -149,6 +149,10 @@ endif() find_package(OpenGL REQUIRED) include_directories(${OPENGL_INCLUDE_DIR}) +# Glew +find_package(GLEW REQUIRED) +include_directories(${GLEW_INCLUDE_DIR}) + if(UNIX AND NOT APPLE) if(USE_XRANDR) find_package(Xrandr REQUIRED) @@ -269,7 +273,8 @@ target_link_libraries(supertuxkart ${CURL_LIBRARIES} ${OGGVORBIS_LIBRARIES} ${OPENAL_LIBRARY} - ${OPENGL_LIBRARIES}) + ${OPENGL_LIBRARIES} + ${GLEW_LIBRARIES}) if(UNIX AND NOT APPLE) if(USE_XRANDR)