From 312a3def687dadacc5d7cf342b6103bef4753975 Mon Sep 17 00:00:00 2001 From: Matt Williams Date: Mon, 26 Nov 2012 23:14:23 +0000 Subject: [PATCH] Fix GLEW compile error on Windows. --- examples/Basic/CMakeLists.txt | 2 ++ examples/OpenGL/CMakeLists.txt | 2 ++ examples/Paging/CMakeLists.txt | 2 ++ examples/SmoothLOD/CMakeLists.txt | 2 ++ 4 files changed, 8 insertions(+) diff --git a/examples/Basic/CMakeLists.txt b/examples/Basic/CMakeLists.txt index 2107e2bb..9f0d531f 100644 --- a/examples/Basic/CMakeLists.txt +++ b/examples/Basic/CMakeLists.txt @@ -34,6 +34,8 @@ SET(INC_FILES OpenGLWidget.h ) +add_definitions(-DGLEW_STATIC) + #"Sources" and "Headers" are the group names in Visual Studio. #They may have other uses too... SOURCE_GROUP("Sources" FILES ${SRC_FILES}) diff --git a/examples/OpenGL/CMakeLists.txt b/examples/OpenGL/CMakeLists.txt index 99ac0506..ce92c693 100644 --- a/examples/OpenGL/CMakeLists.txt +++ b/examples/OpenGL/CMakeLists.txt @@ -42,6 +42,8 @@ SET(INC_FILES Shapes.h ) +add_definitions(-DGLEW_STATIC) + #"Sources" and "Headers" are the group names in Visual Studio. #They may have other uses too... SOURCE_GROUP("Sources" FILES ${SRC_FILES}) diff --git a/examples/Paging/CMakeLists.txt b/examples/Paging/CMakeLists.txt index d6ca8ca8..ef5ddc0c 100644 --- a/examples/Paging/CMakeLists.txt +++ b/examples/Paging/CMakeLists.txt @@ -36,6 +36,8 @@ SET(INC_FILES Perlin.h ) +add_definitions(-DGLEW_STATIC) + #"Sources" and "Headers" are the group names in Visual Studio. #They may have other uses too... SOURCE_GROUP("Sources" FILES ${SRC_FILES}) diff --git a/examples/SmoothLOD/CMakeLists.txt b/examples/SmoothLOD/CMakeLists.txt index a0aad3a8..db1fefec 100644 --- a/examples/SmoothLOD/CMakeLists.txt +++ b/examples/SmoothLOD/CMakeLists.txt @@ -34,6 +34,8 @@ SET(INC_FILES OpenGLWidget.h ) +add_definitions(-DGLEW_STATIC) + #"Sources" and "Headers" are the group names in Visual Studio. #They may have other uses too... SOURCE_GROUP("Sources" FILES ${SRC_FILES})