# Header-only library vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO syoyo/tinygltf REF "v${VERSION}" SHA512 b745fea9e7291494d3bda225b90885ee7923d8a98f515908f3c3390dc3eb76207b9f7d3464254ef68031d0a8428935064dcf40e9c0f1858bd465c4b5dd660382 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")