GLEW(https://github.com/nigels-com/glew, source updated nightly) with Cmake and pre-generated sources
Go to file
2022-08-21 16:01:58 +09:00
.github/workflows Fix github actions build error 2021-12-12 17:24:02 +09:00
auto Extend GLEW API to support glewContextInit - GL without implied GLX, WGL, EGL initialisation 2021-08-29 09:11:11 +10:00
build Merge https://github.com/nigels-com/glew.git into master HEAD at Mon Mar 22 00:01:25 GMT 2021 2021-03-22 00:01:25 +00:00
config Specify that EGL/GLVND doesn't use GLU. 2021-10-29 09:13:42 +10:00
doc Generate Sources of master updated at Thu Nov 18 00:01:44 GMT 2021 2021-11-18 00:01:44 +00:00
glew-cmake Fix failure in maintain script 2022-08-21 16:01:58 +09:00
include/GL Generate Sources of master updated at Wed Nov 24 00:02:05 GMT 2021 2021-11-24 00:02:05 +00:00
src Generate Sources of master updated at Wed Nov 24 00:02:05 GMT 2021 2021-11-24 00:02:05 +00:00
.gitattributes Initial EGL core and extension support with Python egl.xml spec parser 2016-02-06 12:41:11 +10:00
.gitignore Add Visual Studio 2015 and 2017 project files 2017-11-19 09:16:38 +10:00
.lgtm.yml Rename lgtm.yml to hide the file 2020-11-26 20:31:22 +10:00
.travis.yml CMake: Prefer GLVND if available 2021-03-21 12:41:04 +10:00
azure-pipelines.yml Use ubuntu-latest on azure-pipeline 2021-11-14 15:51:36 +09:00
cmake-testbuild.sh build: cmake-testbuild to work on OS X and with CMake < 3.0 2015-07-12 23:12:36 +02:00
CMakeLists.txt Fix build for non-glvnd 2021-11-14 17:09:45 +09:00
GeneratePkgConfig.cmake Fix generate pkg config 2020-12-29 22:55:52 +09:00
glew.pc.in Extend glew.pc output to mention GL linking (-framework on OSX) 2019-03-17 09:05:27 +10:00
LICENSE.txt Set eol-style to native for misc headers and text files 2009-10-07 15:36:15 +00:00
Makefile Disable stripping in debug-mode builds 2021-10-05 08:29:14 +10:00
README_glew.md Move original README.md 2021-11-14 18:41:04 +09:00
README.md Add glew-cmake README 2021-12-05 21:48:50 +09:00

GLEW-cmake - nightly pre-generated snapshot with old unofficial cmake support

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 build/cmake. 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.

Usage

This project provide libglew_static and libglew_shared library targets and glewinfo 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_SHARED or glew-cmake_BUILD_STATIC falsy value (ex. NO, FALSE).

If you need only libraries, Please set ONLY_LIBS to ON. Otherwise, cmake generates executable targets also.

You can get pkg-config fils by setting PKG_CONFIG_REPRESENTATIVE_TARGET to libglew_static or libglew_shared.

Simply specify dependency of your target with libglew_static or libglew_shared by target_link_libraries. It will set the additional include directory & the libraries to link to your target.

If you are not familiar with cmake, Some sub-directory-test.cmake, fetch-content.cmake in glew-cmake could be helpful.