2022-10-12 16:28:37 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO spnda/fastgltf
|
2023-03-29 05:37:22 +08:00
|
|
|
REF "v${VERSION}"
|
2024-03-06 15:39:44 +08:00
|
|
|
SHA512 51dfde5bd32ea4d3634108987115f63ce2def0d0b9f280801606a7e688f97370ed6846817458e0f8b81b3c5110d4deffa75bb7b1db4f0fbc62a356939cdcbeef
|
2022-10-12 16:28:37 +08:00
|
|
|
HEAD_REF main
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2023-08-03 00:07:29 +08:00
|
|
|
file(READ "${CURRENT_PACKAGES_DIR}/share/fastgltf/fastgltfConfig.cmake" contents)
|
|
|
|
file(WRITE "${CURRENT_PACKAGES_DIR}/share/fastgltf/fastgltfConfig.cmake" "
|
|
|
|
include(CMakeFindDependencyMacro)
|
|
|
|
find_dependency(simdjson)
|
|
|
|
${contents}")
|
|
|
|
|
2022-10-12 16:28:37 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|