#!/bin/bash # 依赖安装脚本(Linux/macOS) set -e echo "Setting up DisplayFlow dependencies..." # 检查 CMake 版本 CMAKE_VERSION=$(cmake --version | head -n1 | cut -d' ' -f3) echo "CMake version: $CMAKE_VERSION" # 检查是否使用 vcpkg if [ -d "vcpkg" ]; then echo "Using vcpkg for dependency management" ./vcpkg/bootstrap-vcpkg.sh ./vcpkg/vcpkg install flatbuffers echo "Dependencies installed via vcpkg" else echo "Dependencies will be fetched via CMake FetchContent" echo "No manual installation required" fi echo "Dependency setup complete!"