2019-11-11 11:00:23 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO jlblancoc/nanoflann
|
2023-06-22 08:59:59 +08:00
|
|
|
REF "v${VERSION}"
|
2024-07-16 01:28:51 +08:00
|
|
|
SHA512 73ce51d5aae002741221692857ce189e17786db411229ca45e963469a204577ce55351aa4aee842afd195c3501d3417c51385d1b34862a72f1163f30f656c84d
|
2019-11-11 11:00:23 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-10-05 08:14:16 +08:00
|
|
|
vcpkg_cmake_configure(
|
2022-04-16 04:28:03 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DNANOFLANN_BUILD_EXAMPLES=OFF
|
|
|
|
-DNANOFLANN_BUILD_TESTS=OFF
|
2019-11-11 11:00:23 +08:00
|
|
|
)
|
|
|
|
|
2021-10-05 08:14:16 +08:00
|
|
|
vcpkg_cmake_install()
|
2024-05-25 10:20:07 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "share/cmake/${PORT}")
|
2022-04-16 04:28:03 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2021-10-05 08:14:16 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-11-11 11:00:23 +08:00
|
|
|
|
2023-06-22 08:59:59 +08:00
|
|
|
file(READ "${CURRENT_PACKAGES_DIR}/share/nanoflann/nanoflannConfig.cmake" _contents)
|
|
|
|
file(WRITE "${CURRENT_PACKAGES_DIR}/share/nanoflann/nanoflannConfig.cmake" "
|
|
|
|
include(CMakeFindDependencyMacro)
|
|
|
|
find_dependency(Threads)
|
|
|
|
${_contents}")
|
|
|
|
|
2019-11-11 11:00:23 +08:00
|
|
|
# Handle copyright
|
2023-02-03 11:57:45 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|
|
|
|
|