vcpkg/ports/usearch/portfile.cmake
2023-09-13 17:10:57 -07:00

25 lines
653 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO unum-cloud/usearch
REF "v${VERSION}"
SHA512 b18006b248ea76b1a8c27c9c1285954f9101305cb5228d3565c854bd1aaf92e430556a5dbeb3f43a6a307914dd60b277a3ed342b953101e502871de294962bd4
HEAD_REF main
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DUSEARCH_INSTALL=ON
-DUSEARCH_BUILD_TEST=OFF
-DUSEARCH_BUILD_BENCHMARK=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/usearch)
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")