Skip to content

Commit

Permalink
add FunctionalPlus package
Browse files Browse the repository at this point in the history
  • Loading branch information
headupinclouds committed Feb 3, 2018
1 parent 85a108b commit fcf5b7d
Show file tree
Hide file tree
Showing 4 changed files with 46 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 @@ -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)
Expand Down
22 changes: 22 additions & 0 deletions cmake/projects/FunctionalPlus/hunter.cmake
Original file line number Diff line number Diff line change
@@ -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)
19 changes: 19 additions & 0 deletions examples/FunctionalPlus/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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 }
4 changes: 4 additions & 0 deletions examples/FunctionalPlus/foo.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include <fplus/fplus.hpp>

int main() {
}

0 comments on commit fcf5b7d

Please sign in to comment.