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