GLEW is upstream of this project. But GLEW repository does not contain generated sources. Only releases include generated sources.
GLEW-cmake has generated sources based on the latest GLEW. Sources are generated nightly.
If you need only the latest snapshot of GLEW, try the build system of GLEW. It is placed under the
build directory. Official
CMakeLists.txt is placed in
Please check README_glew.md for using build system of GLEW.
Also, GLEW-cmake has unofficial cmake support - It is created when the official CMake support of GLEW does not exist.
You can see some CMake script examples in
glew-cmake directory. But, I strongly recommend using official CMakeLists of GLEW.
This project provide
libglew_shared library targets and
visualinfo executable targets.
libglew_static provides a static library, and
libglew_shared provides a shared library.
glew-cmake does not affected by BUILD_SHARED_LIBS.
You can disable each library target by setting
glew-cmake_BUILD_STATIC falsy value (ex.
If you need only libraries, Please set
ON. Otherwise, cmake generates executable targets also.
You can get pkg-config fils by setting
Simply specify dependency of your target with
It will set the additional include directory & the libraries to link to your target.
If you are not familiar with cmake, Some
glew-cmake could be helpful.