Skip to content

Commit

Permalink
Add 'smol-v' package (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbsheth authored Oct 8, 2020
1 parent 8d04093 commit af80326
Show file tree
Hide file tree
Showing 5 changed files with 70 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 @@ -483,6 +483,7 @@ hunter_default_version(shaderc VERSION 2019.0-p1)
hunter_default_version(shaka_player_embedded VERSION 0.1.0-beta-p1)
hunter_default_version(sleef VERSION 3.3.1-p1)
hunter_default_version(sm VERSION 1.2.3)
hunter_default_version(smol-v VERSION 0.0.0-4b52c16-p0)
hunter_default_version(soil VERSION 1.0.4)
hunter_default_version(sources_for_android_sdk_packer VERSION 1.0.0)
hunter_default_version(sparsehash VERSION 2.0.2)
Expand Down
24 changes: 24 additions & 0 deletions cmake/projects/smol-v/hunter.cmake
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
smol-v
VERSION
0.0.0-4b52c16-p0
URL
"https://github.com/cpp-pm/smol-v/archive/v0.0.0-4b52c16-p0.tar.gz"
SHA1
e5c2a74d2dc169d3c8a727b752a74e983b22d6a6
)

hunter_pick_scheme(DEFAULT url_sha1_cmake)
hunter_cacheable(smol-v)
hunter_download(PACKAGE_NAME smol-v)
22 changes: 22 additions & 0 deletions docs/packages/pkg/smol-v.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.. spelling::

smol
v

.. index::
single: graphics ; smol-v

.. _pkg.smol-v:

smol-v
======

- `Official <https://github.com/aras-p/smol-v>`__
- `Hunterized <https://github.com/cpp-pm/smol-v>`__
- `Example <https://github.com/cpp-pm/hunter/blob/master/examples/smol-v/CMakeLists.txt>`__
- Added by `Rahul Sheth <https://github.com/rbsheth>`__ (`pr-281 <https://github.com/cpp-pm/hunter/pull/281>`__)

.. literalinclude:: /../examples/smol-v/CMakeLists.txt
:language: cmake
:start-after: # DOCUMENTATION_START {
:end-before: # DOCUMENTATION_END }
18 changes: 18 additions & 0 deletions examples/smol-v/CMakeLists.txt
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-smol-v)

# DOCUMENTATION_START {
hunter_add_package(smol-v)
find_package(smol-v CONFIG REQUIRED)

add_executable(boo boo.cpp)
target_link_libraries(boo PUBLIC smol-v::smol-v)
# DOCUMENTATION_END }
5 changes: 5 additions & 0 deletions examples/smol-v/boo.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include <smol-v/smolv.h>

int main() {
smolv::Stats* stats = smolv::StatsCreate();
}

0 comments on commit af80326

Please sign in to comment.