2019-04-22 12:04:14 +10:00
|
|
|
# Header-only library
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO syoyo/tinygltf
|
2023-10-06 19:37:57 +02:00
|
|
|
REF "v${VERSION}"
|
2024-08-13 07:35:48 +08:00
|
|
|
SHA512 4f4d479a8ad8dd858340b0bfa5af4fdc9073279e59c4240918d5dfce94d2b50b87bc0acad0a2e7659d090dd4aa3b34b456550749fe57bb4f7b58ac2f2b6927aa
|
2019-04-22 12:04:14 +10:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
# Put the licence file where vcpkg expects it
|
2021-04-23 18:46:47 +01:00
|
|
|
# Copy the tinygltf header files and fix the path to json
|
2021-11-23 00:45:07 +01: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 12:04:14 +10:00
|
|
|
|
2023-03-17 01:51:33 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|