28 lines
594 B
Batchfile
28 lines
594 B
Batchfile
|
|
@echo off
|
|||
|
|
REM 依赖安装脚本(Windows)
|
|||
|
|
|
|||
|
|
echo Setting up DisplayFlow dependencies...
|
|||
|
|
|
|||
|
|
REM 检查 CMake 版本
|
|||
|
|
cmake --version
|
|||
|
|
if errorlevel 1 (
|
|||
|
|
echo Error: CMake is not installed or not in PATH
|
|||
|
|
exit /b 1
|
|||
|
|
)
|
|||
|
|
|
|||
|
|
REM 检查是否使用 vcpkg
|
|||
|
|
if exist "vcpkg" (
|
|||
|
|
echo Using vcpkg for dependency management
|
|||
|
|
call vcpkg\bootstrap-vcpkg.bat
|
|||
|
|
vcpkg\vcpkg.exe install flatbuffers:x64-windows
|
|||
|
|
echo Dependencies installed via vcpkg
|
|||
|
|
) else (
|
|||
|
|
echo Dependencies will be fetched via CMake FetchContent
|
|||
|
|
echo No manual installation required
|
|||
|
|
)
|
|||
|
|
|
|||
|
|
echo Dependency setup complete!
|
|||
|
|
|
|||
|
|
|
|||
|
|
|