vcpkg/ports/nanoflann/portfile.cmake

20 lines
608 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 v1.3.2
SHA512 937D3787DF389EFE530060CD2723130251E2CA7937B10F8D770C7B0D21FFD972E6DA21B2B9E655C5740D57B4AF8F76F0CC6D9AE39527C440BE8863BE0DEAA7ED
2019-11-11 11:00:23 +08:00
HEAD_REF master
)
vcpkg_cmake_configure(
2019-11-11 11:00:23 +08:00
SOURCE_PATH ${SOURCE_PATH}
)
vcpkg_cmake_install()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
2019-11-11 11:00:23 +08:00
# Handle copyright
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_fixup_pkgconfig()