[cpp-taskflow] Add new port

This commit is contained in:
myd7349 2018-11-29 19:00:40 +08:00
parent 09103d12a0
commit 724ed8cf4e
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,3 @@
Source: cpp-taskflow
Version: 2018-11-30
Description: Fast Parallel Tasking Programming Library using Modern C++.

View File

@ -0,0 +1,29 @@
# header-only library
include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO cpp-taskflow/cpp-taskflow
REF 97252f7d782c6e896122645175c08131ce10e649
SHA512 df8ae9ea449663cb548f3c37346c2e0c785add2d86b9c618aea2741d81fe88c34b0d3d0e610a4b571973f9bc18631becedfe28e029ecf0c0cc87e4c35a280a29
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DTF_BUILD_EXAMPLES=OFF
-DTF_BUILD_TESTS=OFF
-DTF_BUILD_BENCHMARKS=OFF
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
# Handle copyright
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/cpp-taskflow/copyright COPYONLY)