[nanobench] Add new port (#11955)

* [nanobench] Add new port

* Update ports/nanobench/portfile.cmake

* Update ports/nanobench/portfile.cmake

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
This commit is contained in:
Leonid Pospelov 2020-06-19 00:33:42 +02:00 committed by GitHub
parent 3c5c7d0f38
commit da3be5d43b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 0 deletions

4
ports/nanobench/CONTROL Normal file
View File

@ -0,0 +1,4 @@
Source: nanobench
Version: 4.0.0
Homepage: https://nanobench.ankerl.com
Description: Simple, fast, accurate single-header microbenchmarking functionality for C++11/14/17/20

View File

@ -0,0 +1,16 @@
# Header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO martinus/nanobench
REF c534992696b9341274c6714931d0064d74239fcb #v4.0.0
SHA512 09078f1100c6f843e7646b8aaab687c32e71ba2dc05a2a5b282c72ab064ceffbf4aeb5ad14c4a2bdbe2ea66dca9cd207dee5eade44f77844cddfa490b4c09c32
HEAD_REF master
)
file(
COPY ${SOURCE_PATH}/src/include/nanobench.h
DESTINATION ${CURRENT_PACKAGES_DIR}/include
)
# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)