mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-02 17:49:07 +08:00
3bccc23da9
* [tinygltf] update to version 2.8.20 * [tinygltf] regenerate version info
16 lines
657 B
CMake
16 lines
657 B
CMake
# Header-only library
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO syoyo/tinygltf
|
|
REF "v${VERSION}"
|
|
SHA512 b9cb2283552268e690e17520882247273a60b38b50d27980c6921f897aa3234ac4a5920219fa7191c773d6d8848d097090f31fc4a720097322ffe5894c391687
|
|
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 <nlohmann/json.hpp>")
|
|
file(INSTALL "${SOURCE_PATH}/tiny_gltf.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|