2021-03-12 04:21:52 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2022-02-05 02:20:08 +08:00
|
|
|
REPO alicevision/popsift
|
2021-03-12 04:21:52 +08:00
|
|
|
REF v0.9
|
|
|
|
SHA512 56789520872203eea86e07e8210e00c0b67d85486af16df9d620b1aff10f8d9ef5d910cf1dda6c68af7ca2ed11658ab5414ac79117b543f91a7d8d6a96a17ce0
|
|
|
|
HEAD_REF develop
|
2022-02-05 02:20:08 +08:00
|
|
|
PATCHES
|
|
|
|
fix_missing_thrust_include.patch
|
2021-03-12 04:21:52 +08:00
|
|
|
)
|
|
|
|
|
2022-02-05 02:20:08 +08:00
|
|
|
include("${CURRENT_INSTALLED_DIR}/share/cuda/vcpkg_find_cuda.cmake")
|
2021-03-12 04:21:52 +08:00
|
|
|
vcpkg_find_cuda(OUT_CUDA_TOOLKIT_ROOT CUDA_TOOLKIT_ROOT)
|
|
|
|
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-05-21 15:46:25 +08:00
|
|
|
FEATURES
|
|
|
|
apps PopSift_BUILD_EXAMPLES
|
2021-03-12 04:21:52 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
2021-05-21 15:46:25 +08:00
|
|
|
OPTIONS ${FEATURE_OPTIONS}
|
|
|
|
-DCUDA_TOOLKIT_ROOT_DIR=${CUDA_TOOLKIT_ROOT}
|
2021-03-12 04:21:52 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/PopSift)
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-02-05 02:20:08 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
2021-03-12 04:21:52 +08:00
|
|
|
|
2022-02-05 02:20:08 +08:00
|
|
|
# copy the apps in tools directory
|
|
|
|
if ("apps" IN_LIST FEATURES)
|
|
|
|
vcpkg_copy_tools(TOOL_NAMES popsift-demo AUTO_CLEAN)
|
|
|
|
endif()
|
2021-03-12 04:21:52 +08:00
|
|
|
|
2022-02-05 02:20:08 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|