vcpkg/ports/nanoflann/portfile.cmake

31 lines
897 B
CMake
Raw Normal View History

2019-11-11 11:00:23 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO jlblancoc/nanoflann
REF "v${VERSION}"
2024-08-27 16:27:42 +08:00
SHA512 59959551657696cdc770e860328cd69b4994b580097b780ffca70ed40d875a7a4d0afcec9ce4ca705ec04365905ca2446151289b966cefe892090e81a6ff537d
2019-11-11 11:00:23 +08:00
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DNANOFLANN_BUILD_EXAMPLES=OFF
-DNANOFLANN_BUILD_TESTS=OFF
2019-11-11 11:00:23 +08:00
)
vcpkg_cmake_install()
2024-05-25 10:20:07 +08:00
vcpkg_cmake_config_fixup(CONFIG_PATH "share/cmake/${PORT}")
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
2019-11-11 11:00:23 +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
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")