# Header-only library vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO syoyo/tinygltf REF "v${VERSION}" SHA512 f6342f68de3d3b28554c7f91fc8bfc45198363cf909ad5b424377c60934472c0384868ceb247e47035d4009f48104d67e95bd6b6e4d42fb78d923eb6f82ecd98 HEAD_REF master ) # Put the licence file where vcpkg expects it # Copy the tinygltf header files and fix the path to json vcpkg_replace_string("${SOURCE_PATH}/tiny_gltf.h" "#include \"json.hpp\"" "#include ") file(INSTALL "${SOURCE_PATH}/tiny_gltf.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include") vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")