29 lines
896 B
CMake
29 lines
896 B
CMake
|
# header-only library
|
||
|
vcpkg_from_github(
|
||
|
OUT_SOURCE_PATH SOURCE_PATH
|
||
|
REPO taskflow/taskflow
|
||
|
REF bfad4b9a0cc5acad5fc99fb6ff6b904b79f27f93 #v3.3.0
|
||
|
SHA512 489807c84438a727832e9d530c9b2948240bebee48f210ce4a8c69917cbb71306df378440621b1bf091e4aa62c86681d71afd38a3343c8ea872a4eefcabc496e
|
||
|
HEAD_REF master
|
||
|
)
|
||
|
|
||
|
vcpkg_cmake_configure(
|
||
|
SOURCE_PATH "${SOURCE_PATH}"
|
||
|
OPTIONS
|
||
|
-DTF_BUILD_BENCHMARKS=OFF
|
||
|
-DTF_BUILD_CUDA=OFF
|
||
|
-DTF_BUILD_TESTS=OFF
|
||
|
-DTF_BUILD_EXAMPLES=OFF
|
||
|
-DBUILD_TESTING=OFF
|
||
|
-DCMAKE_CUDA_COMPILER=OFF
|
||
|
)
|
||
|
|
||
|
vcpkg_cmake_install()
|
||
|
|
||
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Taskflow)
|
||
|
|
||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
||
|
|
||
|
# Handle copyright
|
||
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|