2019-04-22 10:04:14 +08:00
|
|
|
# Header-only library
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO syoyo/tinygltf
|
2023-10-07 01:37:57 +08:00
|
|
|
REF "v${VERSION}"
|
2024-06-12 09:31:55 +08:00
|
|
|
SHA512 f6342f68de3d3b28554c7f91fc8bfc45198363cf909ad5b424377c60934472c0384868ceb247e47035d4009f48104d67e95bd6b6e4d42fb78d923eb6f82ecd98
|
2019-04-22 10:04:14 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
# Put the licence file where vcpkg expects it
|
2021-04-24 01:46:47 +08:00
|
|
|
# Copy the tinygltf header files and fix the path to json
|
2021-11-23 07:45:07 +08:00
|
|
|
vcpkg_replace_string("${SOURCE_PATH}/tiny_gltf.h" "#include \"json.hpp\"" "#include <nlohmann/json.hpp>")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/tiny_gltf.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
2019-04-22 10:04:14 +08:00
|
|
|
|
2023-03-17 01:51:33 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|