Skip to content

Commit

Permalink
Add "scelta" package (#142)
Browse files Browse the repository at this point in the history
* Initial commit

* First version of scelta

* Add new scelta version and fix findings

* Update default version
  • Loading branch information
Bjoe committed Jan 31, 2020
1 parent 57dde76 commit 3096925
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
Expand Up @@ -461,6 +461,7 @@ hunter_default_version(rosconsole VERSION 1.13.10-p0)
hunter_default_version(roscpp_core VERSION 0.6.12-p0)
hunter_default_version(rospack VERSION 2.5.3-p0)
hunter_default_version(s3 VERSION 0.0.0-287e4be-p1)
hunter_default_version(scelta VERSION 0.1.0-a0f4f70-p0)
hunter_default_version(sds VERSION 2.0.0)
hunter_default_version(sentencepiece VERSION 0.1.8-p1)
hunter_default_version(shaderc VERSION 2019.0-p1)
Expand Down
24 changes: 24 additions & 0 deletions cmake/projects/scelta/hunter.cmake
@@ -0,0 +1,24 @@
# !!! 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
scelta
VERSION
0.1.0-a0f4f70-p0
URL
"https://github.com/cpp-pm/scelta/archive/v0.1-a0f4f70-p0.tar.gz"
SHA1
2b5abc5e577687757f4cc37d702e5903fb143a9a
)

hunter_pick_scheme(DEFAULT url_sha1_cmake)
hunter_cacheable(scelta)
hunter_download(
PACKAGE_NAME scelta
PACKAGE_INTERNAL_DEPS_ID "1"
)
21 changes: 21 additions & 0 deletions docs/packages/pkg/scelta.rst
@@ -0,0 +1,21 @@
.. spelling::

scelta

.. index::
single: unsorted ; scelta

.. _pkg.scelta:

scelta
======

- `Official <https://github.com/SuperV1234/scelta>`__
- `Hunterized <https://github.com/cpp-pm/scelta>`__
- `Example <https://github.com/cpp-pm/hunter/blob/master/examples/scelta/CMakeLists.txt>`__
- Added by `Joerg-Christian Boehme <https://github.com/Bjoe>`__ (`pr-142 <https://github.com/cpp-pm/hunter/pull/142>`__)

.. literalinclude:: /../examples/scelta/CMakeLists.txt
:language: cmake
:start-after: # DOCUMENTATION_START {
:end-before: # DOCUMENTATION_END }
18 changes: 18 additions & 0 deletions examples/scelta/CMakeLists.txt
@@ -0,0 +1,18 @@
# Copyright (c)
# All rights reserved.

cmake_minimum_required(VERSION 3.2)

# Emulate HunterGate:
# * https://github.com/cpp-pm/gate
include("../common.cmake")

project(scelta)

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

add_executable(boo boo.cpp)
target_link_libraries(boo PUBLIC scelta::headers)
# DOCUMENTATION_END }
6 changes: 6 additions & 0 deletions examples/scelta/boo.cpp
@@ -0,0 +1,6 @@
#include <scelta.hpp>
#include <scelta/match.hpp>

int main() {
scelta::match();
}

0 comments on commit 3096925

Please sign in to comment.