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})