Skip to content

Commit

Permalink
Add 'gl4es' package (#143)
Browse files Browse the repository at this point in the history
* Add 'gl4es' package

* Change 'gl4es' package source to cpp-pm repo
  • Loading branch information
drodin committed Jan 31, 2020
1 parent 3096925 commit e978896
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmake/configs/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ hunter_default_version(geos VERSION 3.4.2)
hunter_default_version(getopt VERSION 1.0.0-p0)
hunter_default_version(gflags VERSION 2.2.1)
hunter_default_version(giflib VERSION 5.1.4-p1)
hunter_default_version(gl4es VERSION 1.1.2-p0)
hunter_default_version(glbinding VERSION 3.1.0-p0)
hunter_default_version(glew VERSION 2.0.0-p1)
hunter_default_version(glfw VERSION 3.3.0-f9923e9-p0)
Expand Down
34 changes: 34 additions & 0 deletions cmake/projects/gl4es/hunter.cmake
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)
22 changes: 22 additions & 0 deletions docs/packages/pkg/gl4es.rst
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 }
15 changes: 15 additions & 0 deletions examples/gl4es/CMakeLists.txt
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 }
4 changes: 4 additions & 0 deletions examples/gl4es/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include <gl4eshint.h>

int main() {
}

0 comments on commit e978896

Please sign in to comment.