Skip to content

Commit 4841e72

Browse files
authored
Add vurtun-lib package (#431)
* Add vurtun-lib package * Update example
1 parent f9f90e0 commit 4841e72

File tree

5 files changed

+68
-0
lines changed

5 files changed

+68
-0
lines changed

cmake/configs/default.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,7 @@ hunter_default_version(uuid VERSION 1.0.3)
553553
hunter_default_version(v8 VERSION 7.4.98-p3)
554554
hunter_default_version(vectorial VERSION 0.0.0-ae7dc88-p0)
555555
hunter_default_version(vorbis VERSION 1.3.6-p1)
556+
hunter_default_version(vurtun-lib VERSION 0.0.0-f1cda26-p0)
556557
hunter_default_version(websocketpp VERSION 0.8.1-p0)
557558
hunter_default_version(wt VERSION 4.0.4-p0)
558559
hunter_default_version(wxWidgets VERSION 3.0.2)
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright (c) 2016-2020, Rahul Sheth, Ruslan Baratov
2+
# All rights reserved.
3+
4+
# !!! DO NOT PLACE HEADER GUARDS HERE !!!
5+
6+
include(hunter_add_version)
7+
include(hunter_cacheable)
8+
include(hunter_download)
9+
include(hunter_pick_scheme)
10+
11+
hunter_add_version(
12+
PACKAGE_NAME
13+
vurtun-lib
14+
VERSION
15+
0.0.0-f1cda26-p0
16+
URL
17+
"https://github.com/cpp-pm/vurtun-lib/archive/refs/tags/v0.0.0-f1cda26-p0.tar.gz"
18+
SHA1
19+
c59de030c43f008103d0fafad7f79f35e39476db
20+
)
21+
22+
hunter_pick_scheme(DEFAULT url_sha1_cmake)
23+
hunter_cacheable(vurtun-lib)
24+
hunter_download(PACKAGE_NAME vurtun-lib)

docs/packages/pkg/vurtun-lib.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.. spelling::
2+
3+
vurtun
4+
5+
.. index::
6+
single: unsorted ; vurtun-lib
7+
8+
.. _pkg.vurtun-lib:
9+
10+
vurtun-lib
11+
==========
12+
13+
- `Official <https://github.com/vurtun/lib>`__
14+
- `Hunterized <https://github.com/cpp-pm/vurtun-lib>`__
15+
- `Example <https://github.com/cpp-pm/hunter/blob/master/examples/vurtun-lib/CMakeLists.txt>`__
16+
- Added by `Rahul Sheth <https://github.com/rbsheth>`__ (`pr-431 <https://github.com/cpp-pm/hunter/pull/431>`__)
17+
18+
.. literalinclude:: /../examples/vurtun-lib/CMakeLists.txt
19+
:language: cmake
20+
:start-after: # DOCUMENTATION_START {
21+
:end-before: # DOCUMENTATION_END }

examples/vurtun-lib/CMakeLists.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright (c) 2016-2020, Rahul Sheth, Ruslan Baratov
2+
# All rights reserved.
3+
4+
cmake_minimum_required(VERSION 3.2)
5+
6+
# Emulate HunterGate:
7+
# * https://github.com/hunter-packages/gate
8+
include("../common.cmake")
9+
10+
project(download-vurtun-lib)
11+
12+
# DOCUMENTATION_START {
13+
hunter_add_package(vurtun-lib)
14+
find_package(vurtun CONFIG REQUIRED)
15+
16+
add_executable(boo boo.cpp)
17+
target_link_libraries(boo PUBLIC vurtun::lib)
18+
# DOCUMENTATION_END }

examples/vurtun-lib/boo.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#include <sdefl.h>
2+
3+
int main() {
4+
}

0 commit comments

Comments
 (0)