GitXplorerGitXplorer
P

glew-cmake

public
238 stars
95 forks
0 issues

Commits

List of commits on branch master.
Unverified
72ff6b1a5ecfc1ae6154637298882744487634b4

Generate Sources of master updated at Wed Sep 11 00:01:25 GMT 2024

PPerlmint committed 4 months ago
Unverified
9f4f3e67eb407a34cb94affa52a55e6273f0c700

Generate Sources of master updated at Sat Aug 24 10:11:29 GMT 2024

PPerlmint committed 5 months ago
Unverified
8d3ac6aca3ed31e2644cb4553ef19c141bd61a38

Merge https://github.com/nigels-com/glew.git into master HEAD at Sat Aug 24 10:11:14 GMT 2024

PPerlmint committed 5 months ago
Unverified
b323ebf9adeae6a3f26f91277d4f62df509037fc

Remove everything after digits in SYSTEM

rryandesign committed a year ago
Unverified
c050e33aa0d5f97cc9d1bfc73224f6f6d977629f

Define APIENTRY in osmesa build if not defined.

aanuraaga committed 10 months ago
Unverified
a5494db414d62e7bcb19f9f8fd7ee660338ea08e

Generate Sources of master updated at Sun Dec 17 00:01:29 GMT 2023

PPerlmint committed a year ago

README

The README file for this repository.

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.