2022-12-07 04:00:41 +08:00
|
|
|
vcpkg_minimum_required(VERSION 2022-11-10)
|
|
|
|
|
2020-06-19 06:33:42 +08:00
|
|
|
# Header-only library
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO martinus/nanobench
|
2022-12-07 04:00:41 +08:00
|
|
|
REF v${VERSION}
|
|
|
|
SHA512 2d0c9e912fd2e777e3c75ac52d51daff720b51a776e5fc9f9d1e198f8b106bc13bd21219f195bf9c6c80b5a13fdb6b805c436d3060ec46fbd1f2ef67d58945db
|
2020-06-19 06:33:42 +08:00
|
|
|
HEAD_REF master
|
2022-04-19 23:32:34 +08:00
|
|
|
PATCHES
|
|
|
|
fix-cmakefile.patch
|
2020-06-19 06:33:42 +08:00
|
|
|
)
|
|
|
|
|
2022-04-19 23:32:34 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-06-19 06:33:42 +08:00
|
|
|
)
|
|
|
|
|
2022-04-19 23:32:34 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
2022-12-07 04:00:41 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|