mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 12:41:50 +08:00
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 daee181b4212c7ba96b3e791fc28aa77102555323a2fef167edaee24d6e13ba4c9a844d028a3f2734760a65440face0eb759d034daecd4c0e3b4c4b67dadfd72
|
|
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")
|