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