GLEW(https://github.com/nigels-com/glew, source updated nightly) with Cmake and pre-generated sources
Go to file
Gyusun b9f61b43b2 Merge https://github.com/nigels-com/glew.git into master HEAD at Sat Nov 11 00:00:54 GMT 2023 2023-11-11 00:00:54 +00:00
.github/workflows Run build test with latest cmake 2023-09-15 22:25:42 +09:00
auto blacklist MESA_sampler_objects for now, collides with GL_ARB_sampler_objects 2023-11-10 08:32:46 +10:00
build Merge https://github.com/nigels-com/glew.git into master HEAD at Mon Oct 16 00:01:34 GMT 2023 2023-10-16 00:01:34 +00:00
config Build support for SYSTEM=darwin-arm64 2023-11-10 08:35:40 +10:00
doc Generate Sources of master updated at Sat Sep 30 00:01:22 GMT 2023 2023-09-30 00:01:22 +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 Sat Sep 30 00:01:22 GMT 2023 2023-09-30 00:01:22 +00:00
src Generate Sources of master updated at Sat Sep 30 00:01:22 GMT 2023 2023-09-30 00:01:22 +00:00
.gitattributes Initial EGL core and extension support with Python egl.xml spec parser 2016-02-06 12:41:11 +10:00
.gitignore Added to .gitignore auto-checkout out repos 2023-03-15 22:28:40 +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
CMakeLists.txt CMake: Fixed minimal version warning on recent CMake 2023-08-23 01:03:03 +03:00
GeneratePkgConfig.cmake Fix generate pkg config 2020-12-29 22:55:52 +09: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.md AWS Codebuild badge added 2023-11-10 12:53:13 +10:00
README_glew.md Merge https://github.com/nigels-com/glew.git into master HEAD at Sat Nov 11 00:00:54 GMT 2023 2023-11-11 00:00:54 +00:00
azure-pipelines.yml Use ubuntu-latest on azure-pipeline 2021-11-14 15:51:36 +09:00
cmake-testbuild.sh Updated comment in cmake-testbuild.sh 2023-07-16 09:29:54 +10:00
glew.pc.in Extend glew.pc output to mention GL linking (-framework on OSX) 2019-03-17 09:05:27 +10:00

README.md

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.