forked from ruslo/hunter
-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add OpenGL-Registry package (Headers only) (#424)
- Loading branch information
Showing
5 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright (c) 2016-2020, Rahul Sheth, Ruslan Baratov | ||
# All rights reserved. | ||
|
||
# !!! DO NOT PLACE HEADER GUARDS HERE !!! | ||
|
||
include(hunter_add_version) | ||
include(hunter_cacheable) | ||
include(hunter_download) | ||
include(hunter_pick_scheme) | ||
|
||
hunter_add_version( | ||
PACKAGE_NAME | ||
OpenGL-Registry | ||
VERSION | ||
0.0.0-d15191e-p0 | ||
URL | ||
"https://github.com/cpp-pm/OpenGL-Registry/archive/refs/tags/v0.0.0-d15191e-p0.tar.gz" | ||
SHA1 | ||
841544bab9789c589012780a3e6a3e3ff50bce16 | ||
) | ||
|
||
hunter_pick_scheme(DEFAULT url_sha1_cmake) | ||
hunter_cacheable(OpenGL-Registry) | ||
hunter_download(PACKAGE_NAME OpenGL-Registry) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.. spelling:: | ||
|
||
OpenGL | ||
|
||
.. index:: | ||
single: unsorted ; OpenGL-Registry | ||
|
||
.. _pkg.OpenGL-Registry: | ||
|
||
OpenGL-Registry | ||
=============== | ||
|
||
- `Official <https://github.com/KhronosGroup/OpenGL-Registry>`__ | ||
- `Hunterized <https://github.com/cpp-pm/OpenGL-Registry>`__ | ||
- `Example <https://github.com/cpp-pm/hunter/blob/master/examples/OpenGL-Registry/CMakeLists.txt>`__ | ||
- Added by `Rahul Sheth <https://github.com/rbsheth>`__ (`pr-424 <https://github.com/cpp-pm/hunter/pull/424>`__) | ||
|
||
.. literalinclude:: /../examples/OpenGL-Registry/CMakeLists.txt | ||
:language: cmake | ||
:start-after: # DOCUMENTATION_START { | ||
:end-before: # DOCUMENTATION_END } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright (c) 2016-2020, Rahul Sheth, Ruslan Baratov | ||
# All rights reserved. | ||
|
||
cmake_minimum_required(VERSION 3.2) | ||
|
||
# Emulate HunterGate: | ||
# * https://github.com/hunter-packages/gate | ||
include("../common.cmake") | ||
|
||
project(download-OpenGL-Registry) | ||
|
||
# DOCUMENTATION_START { | ||
hunter_add_package(OpenGL-Registry) | ||
find_package(OpenGL-Registry CONFIG REQUIRED) | ||
|
||
add_executable(boo boo.cpp) | ||
target_link_libraries(boo PUBLIC OpenGL::Registry-Headers) | ||
# DOCUMENTATION_END } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include <GL/glcorearb.h> | ||
|
||
#include <iostream> | ||
|
||
int main() { | ||
khronos_uint8_t test = 0; | ||
std::cout << "testing: " << test << std::endl; | ||
} |