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}"
|
2023-11-07 01:54:39 +08:00
|
|
|
SHA512 6cda7e50d7fe01428e0a03d3f590fe7b680bfa4b6fcdbd1c6a118ac01c925099e63b34380b053adc323e2aaaaead42bda450d1eaf66b60af6ad2aafb68828d01
|
2022-10-12 16:28:37 +08:00
|
|
|
HEAD_REF main
|
2023-05-26 02:43:57 +08:00
|
|
|
PATCHES find_package.patch
|
2022-10-12 16:28:37 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS -DFASTGLTF_DOWNLOAD_SIMDJSON=OFF
|
|
|
|
)
|
|
|
|
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")
|