2019-04-22 10:04:14 +08:00
|
|
|
# Header-only library
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO syoyo/tinygltf
|
2021-11-23 07:45:07 +08:00
|
|
|
REF v2.5.0
|
|
|
|
SHA512 f0e9c3f385deaf3c803edea05602da1cbf173e42c6946ec06b0ec6145f7f258a2429921a1c9baf0ca48353219fedeedfe4ad4516429c970ec4c27d7538873003
|
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
|
|
|
|
2021-11-23 07:45:07 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|