]> git.proxmox.com Git - ceph.git/blame - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/popsift/portfile.cmake
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / popsift / portfile.cmake
CommitLineData
1e59de90
TL
1vcpkg_from_github(
2 OUT_SOURCE_PATH SOURCE_PATH
3 REPO alicevision/popsift
4 REF v0.9
5 SHA512 56789520872203eea86e07e8210e00c0b67d85486af16df9d620b1aff10f8d9ef5d910cf1dda6c68af7ca2ed11658ab5414ac79117b543f91a7d8d6a96a17ce0
6 HEAD_REF develop
7)
8
9include(${CURRENT_INSTALLED_DIR}/share/cuda/vcpkg_find_cuda.cmake)
10vcpkg_find_cuda(OUT_CUDA_TOOLKIT_ROOT CUDA_TOOLKIT_ROOT)
11
12message(STATUS "CUDA_TOOLKIT_ROOT ${CUDA_TOOLKIT_ROOT}")
13
14vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
15 apps PopSift_BUILD_EXAMPLES
16)
17
18vcpkg_configure_cmake(
19 SOURCE_PATH ${SOURCE_PATH}
20 PREFER_NINJA
21 OPTIONS ${FEATURE_OPTIONS} -DCUDA_TOOLKIT_ROOT_DIR=${CUDA_TOOLKIT_ROOT}
22)
23
24vcpkg_install_cmake()
25
26vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/PopSift)
27
28vcpkg_copy_pdbs()
29
30file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
31
32 # move the bin direcory to tools
33 if ("apps" IN_LIST FEATURES)
34 file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools)
35 file(RENAME "${CURRENT_PACKAGES_DIR}/bin" ${CURRENT_PACKAGES_DIR}/tools/popsift)
36 file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
37# file(RENAME "${CURRENT_PACKAGES_DIR}/debug/bin" ${CURRENT_PACKAGES_DIR}/tools/popsift/debug)
38 vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/popsift)
39 endif()
40
41file(INSTALL ${SOURCE_PATH}/COPYING.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/popsift RENAME copyright)