2023-02-11 03:27:55 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2020-06-19 06:33:42 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO martinus/nanobench
|
2022-12-07 04:00:41 +08:00
|
|
|
REF v${VERSION}
|
2023-02-08 07:24:50 +08:00
|
|
|
SHA512 aa00dfc585445fda63b3ba1a802da259993b6b99d0bc2c9bb5f8a9dac64d25e9a61f072846d8f70ee2fea58482431749189179520ba7f6e075dbb223574a3a4d
|
2020-06-19 06:33:42 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2023-02-08 07:24:50 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
|
|
|
|
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()
|
2023-02-08 07:24:50 +08:00
|
|
|
vcpkg_cmake_config_fixup()
|
2022-04-19 23:32:34 +08:00
|
|
|
|
2023-02-11 03:27:55 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2022-04-19 23:32:34 +08:00
|
|
|
|
2022-12-07 04:00:41 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
2023-02-08 07:24:50 +08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|