mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-24 18:27:51 +08:00
19 lines
879 B
CMake
19 lines
879 B
CMake
include(vcpkg_common_functions)
|
|
|
|
set(SOURCE_VERSION 3.1.0)
|
|
|
|
vcpkg_download_distfile(HEADER
|
|
URLS "https://github.com/nlohmann/json/releases/download/v${SOURCE_VERSION}/json.hpp"
|
|
FILENAME "nlohmann-json-${SOURCE_VERSION}.hpp"
|
|
SHA512 710a92f065cc7fc873db2e08158f285390b9ac38f1b0bc6bbfd9e52597574749fe1e90b114d3d750fcc9f79d7d53530242e57135d60675b35c23d1f948ad7ef2
|
|
)
|
|
|
|
vcpkg_download_distfile(LICENSE
|
|
URLS "https://github.com/nlohmann/json/raw/v${SOURCE_VERSION}/LICENSE.MIT"
|
|
FILENAME "nlohmann-json-LICENSE-${SOURCE_VERSION}.txt"
|
|
SHA512 0fdb404547467f4523579acde53066badf458504d33edbb6e39df0ae145ed27d48a720189a60c225c0aab05f2aa4ce4050dcb241b56dc693f7ee9f54c8728a75
|
|
)
|
|
|
|
file(INSTALL ${HEADER} DESTINATION ${CURRENT_PACKAGES_DIR}/include/nlohmann RENAME json.hpp)
|
|
file(INSTALL ${LICENSE} DESTINATION ${CURRENT_PACKAGES_DIR}/share/nlohmann-json RENAME copyright)
|