From fcf5b7db5bea6f284ae2b8a01ff8d4b5ff427bc4 Mon Sep 17 00:00:00 2001 From: David Hirvonen Date: Sat, 3 Feb 2018 18:38:35 -0500 Subject: [PATCH] add FunctionalPlus package --- cmake/configs/default.cmake | 1 + cmake/projects/FunctionalPlus/hunter.cmake | 22 ++++++++++++++++++++++ examples/FunctionalPlus/CMakeLists.txt | 19 +++++++++++++++++++ examples/FunctionalPlus/foo.cpp | 4 ++++ 4 files changed, 46 insertions(+) create mode 100644 cmake/projects/FunctionalPlus/hunter.cmake create mode 100644 examples/FunctionalPlus/CMakeLists.txt create mode 100644 examples/FunctionalPlus/foo.cpp diff --git a/cmake/configs/default.cmake b/cmake/configs/default.cmake index 846ae1d3ad..bd866e2ceb 100644 --- a/cmake/configs/default.cmake +++ b/cmake/configs/default.cmake @@ -191,6 +191,7 @@ hunter_config(drm VERSION 2.4.67) hunter_config(eigen3-nnls VERSION 1.0.1) hunter_config(eos VERSION 0.12.1) hunter_config(FakeIt VERSION 2.0.3) +hunter_config(FunctionalPlus VERSION 0.2-p0) hunter_config(fft2d VERSION 1.0.0-p0) hunter_config(farmhash VERSION 1.1) hunter_config(fixesproto VERSION 5.0) diff --git a/cmake/projects/FunctionalPlus/hunter.cmake b/cmake/projects/FunctionalPlus/hunter.cmake new file mode 100644 index 0000000000..0e83176c7f --- /dev/null +++ b/cmake/projects/FunctionalPlus/hunter.cmake @@ -0,0 +1,22 @@ +# Copyright (c) 2013-2018, Ruslan Baratov +# Copyright (c) 2018, David Hirvonen +# All rights reserved. + +# !!! DO NOT PLACE HEADER GUARDS HERE !!! + +# Load used modules +include(hunter_add_version) +include(hunter_cacheable) +include(hunter_download) +include(hunter_pick_scheme) + +hunter_add_version( + PACKAGE_NAME FunctionalPlus + VERSION 0.2-p0 + URL "https://github.com/headupinclouds/FunctionalPlus/archive/v0.2-p0.tar.gz" + SHA1 2d0c25cc692389419f3338d9ae527aa9c4f799d8 +) + +hunter_pick_scheme(DEFAULT url_sha1_cmake) +hunter_cacheable(FunctionalPlus) +hunter_download(PACKAGE_NAME FunctionalPlus) diff --git a/examples/FunctionalPlus/CMakeLists.txt b/examples/FunctionalPlus/CMakeLists.txt new file mode 100644 index 0000000000..0c8632d262 --- /dev/null +++ b/examples/FunctionalPlus/CMakeLists.txt @@ -0,0 +1,19 @@ +# Copyright (c) 2016-2018, Ruslan Baratov +# Copyright (c) 2018, David Hirvonen +# All rights reserved. + +cmake_minimum_required(VERSION 3.0) + +# Emulate HunterGate: +# * https://github.com/hunter-packages/gate +include("../common.cmake") + +project(download-FunctionalPlus) + +# DOCUMENTATION_START { +hunter_add_package(FunctionalPlus) +find_package(FunctionalPlus CONFIG REQUIRED) + +add_executable(foo foo.cpp) +target_link_libraries(foo FunctionalPlus::fplus) +# DOCUMENTATION_END } diff --git a/examples/FunctionalPlus/foo.cpp b/examples/FunctionalPlus/foo.cpp new file mode 100644 index 0000000000..2788c673fd --- /dev/null +++ b/examples/FunctionalPlus/foo.cpp @@ -0,0 +1,4 @@ +#include + +int main() { +}