Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "scelta" package #142

Merged
merged 4 commits into from Jan 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions cmake/configs/default.cmake
Expand Up @@ -460,6 +460,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();
}