Skip to content

Commit

Permalink
Add 'complex_bessel' package (cpp-pm#472)
Browse files Browse the repository at this point in the history
* Add 'complex_bessel' package

* use patched version

* update pr number & spelling error
  • Loading branch information
craffael authored Oct 4, 2021
1 parent 3c31a26 commit e92618b
Show file tree
Hide file tree
Showing 5 changed files with 68 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 @@ -224,6 +224,7 @@ hunter_default_version(civetweb VERSION 1.11-p0)
hunter_default_version(clBLAS VERSION 2.10.0-p0)
hunter_default_version(class_loader VERSION 0.4.1-p0)
hunter_default_version(cmcstl2 VERSION 0.0.0-bee0705e99)
hunter_default_version(complex_bessel VERSION 0.5.0-abab4b5)
hunter_default_version(convertutf VERSION 1.0.1)
hunter_default_version(corrade VERSION 2019.10)
hunter_default_version(cpp-statsd-client VERSION 1.0.1-42f02b4-p0)
Expand Down
24 changes: 24 additions & 0 deletions cmake/projects/complex_bessel/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
complex_bessel
VERSION
"0.5.0-abab4b5"
URL
"https://github.com/joeydumont/complex_bessel/archive/d08c44541a44c5a02490c698478bb5a8ec335861.tar.gz"
SHA1
58fedaab36b89c499f9bc73afaa5a36f16ef433c
)

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

complex_bessel
bessel

.. index::
single: math ; complex_bessel

.. _pkg.complex_bessel:

complex_bessel
==============

- `Official <https://github.com/joeydumont/complex_bessel>`__
- `Example <https://github.com/cpp-pm/hunter/blob/master/examples/complex_bessel/CMakeLists.txt>`__
- Added by `craffael <https://github.com/craffael>`__ (`pr-472 <https://github.com/cpp-pm/hunter/pull/472>`__)

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

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

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

int main() {
}

0 comments on commit e92618b

Please sign in to comment.