GLEW(https://github.com/nigels-com/glew, source updated nightly) with Cmake and pre-generated sources
Go to file
Gyusun Yeom 9758219375
Merge pull request #62 from Wohlstand/master
CMake: Fixed symbolic link for builds with a debug postfix
2023-06-26 23:28:33 +09:00
.github/workflows Fix github actions build error 2021-12-12 17:24:02 +09:00
auto Check the macOS deployment target before using dlfcn 2023-03-15 22:28:10 +10:00
build Merge https://github.com/nigels-com/glew.git into master HEAD at Thu Jun 22 00:01:40 GMT 2023 2023-06-22 00:01:40 +00:00
config Make: Remove 32 bit support from universal build 2022-02-09 19:58:09 +10:00
doc Generate Sources of master updated at Sat Apr 1 00:01:52 GMT 2023 2023-04-01 00:01:52 +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 Fri Jun 23 00:01:47 GMT 2023 2023-06-23 00:01:47 +00:00
src Generate Sources of master updated at Fri Jun 23 00:01:47 GMT 2023 2023-06-23 00:01:47 +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
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 CMake: Fixed symbolic link for builds with a debug postfix 2023-06-21 03:10:16 +03: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 Merge https://github.com/nigels-com/glew.git into master HEAD at Sun Aug 21 07:02:53 GMT 2022 2022-08-21 07:02:53 +00:00
README.md README: travis-ci is no longer relevant 2022-04-02 12:39:09 +10: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.