暂存文件
This commit is contained in:
27
scripts/setup_dependencies.bat
Normal file
27
scripts/setup_dependencies.bat
Normal file
@@ -0,0 +1,27 @@
|
||||
@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!
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user