Skip to content

Commit

Permalink
Bank add
Browse files Browse the repository at this point in the history
  • Loading branch information
undefinedev committed Apr 25, 2022
1 parent afbeade commit f644fe8
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 @@ -30,6 +30,7 @@ hunter_default_version(ArrayFire VERSION 3.3.1-p0)
hunter_default_version(Assimp VERSION 5.0.1-cb56866)
hunter_default_version(Async++ VERSION 0.0.3-hunter)
hunter_default_version(Avahi VERSION 0.6.31)
hunter_default_version(Banking VERSION 1.0.1)
hunter_default_version(BZip2 VERSION 1.0.8-p0)
hunter_default_version(Beast VERSION 1.0.0-b84-hunter-0)

Expand Down
24 changes: 24 additions & 0 deletions cmake/projects/Banking/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
Banking
VERSION
1.0.1
URL
"https://github.com/undefinedev/Banking/archive/v1.0.1.tar.gz"
SHA1
552af4b4e5f344c3b782a047a869c4130763fb6d
)

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

Banking

.. index::
single: unsorted ; Banking

.. _pkg.Banking:

Banking
===

- `Official <https://official_Banking>`__
- `Hunterized <https://github.com/cpp-pm/Banking>`__
- `Example <https://github.com/cpp-pm/hunter/blob/master/examples/Banking/CMakeLists.txt>`__
- Added by `foo_developer <https://github.com/foo_developer>`__ (`pr-N <https://github.com/cpp-pm/hunter/pull/N>`__)

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

# DOCUMENTATION_START {
hunter_add_package(Banking)
find_package(Banking CONFIG REQUIRED)

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

int main() {
Account t1(1, 100);
}

0 comments on commit f644fe8

Please sign in to comment.