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 'gl4es' package * Change 'gl4es' package source to cpp-pm repo
- Loading branch information
Showing
5 changed files
with
76 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,34 @@ | ||
include(hunter_add_version) | ||
include(hunter_cacheable) | ||
include(hunter_download) | ||
include(hunter_cmake_args) | ||
include(hunter_pick_scheme) | ||
|
||
hunter_add_version( | ||
PACKAGE_NAME | ||
gl4es | ||
VERSION | ||
1.1.2-p0 | ||
URL | ||
"https://github.com/cpp-pm/gl4es/archive/1.1.2-p0.tar.gz" | ||
SHA1 | ||
8dab8937c43a4c6de5e3fd474d9607175d1cebdf | ||
) | ||
|
||
set(_hunter_gl4es_cmake_args) | ||
if(NOT BUILD_SHARED_LIBS) | ||
set( | ||
_hunter_gl4es_cmake_args | ||
STATICLIB=ON | ||
) | ||
endif() | ||
|
||
hunter_cmake_args( | ||
gl4es | ||
CMAKE_ARGS | ||
${_hunter_gl4es_cmake_args} | ||
) | ||
|
||
hunter_pick_scheme(DEFAULT url_sha1_cmake) | ||
hunter_cacheable(gl4es) | ||
hunter_download(PACKAGE_NAME gl4es) |
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,22 @@ | ||
.. spelling:: | ||
|
||
gl4es | ||
gl | ||
|
||
.. index:: | ||
single: graphics ; gl4es | ||
|
||
.. _pkg.gl4es: | ||
|
||
gl4es | ||
===== | ||
|
||
- `Official <https://github.com/ptitSeb/gl4es>`__ | ||
- `Hunterized <https://github.com/cpp-pm/gl4es>`__ | ||
- `Example <https://github.com/cpp-pm/hunter/blob/master/examples/gl4es/CMakeLists.txt>`__ | ||
- Added by `drodin <https://github.com/drodin>`__ (`pr-143 <https://github.com/cpp-pm/hunter/pull/143>`__) | ||
|
||
.. literalinclude:: /../examples/gl4es/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,15 @@ | ||
cmake_minimum_required(VERSION 3.2) | ||
|
||
# Emulate HunterGate: | ||
# * https://github.com/hunter-packages/gate | ||
include("../common.cmake") | ||
|
||
project(download-gl4es) | ||
|
||
# DOCUMENTATION_START { | ||
hunter_add_package(gl4es) | ||
find_package(gl4es CONFIG REQUIRED) | ||
|
||
add_executable(main main.cpp) | ||
target_link_libraries(main PUBLIC gl4es::GL) | ||
# 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,4 @@ | ||
#include <gl4eshint.h> | ||
|
||
int main() { | ||
} |