Casper e1ad87911a | пре 1 недеља
..
3rdparty e1ad87911a | пре 1 недеља
src e1ad87911a | пре 1 недеља
CMakeLists.txt e1ad87911a | пре 1 недеља
CMakeSettings.json e1ad87911a | пре 1 недеља
Config.json e1ad87911a | пре 1 недеља
README-usage.ps1 e1ad87911a | пре 1 недеља

README-usage.ps1

## PowerShell7 on win10/win11

# --- 安装 choco | run as administrator
Set-ExecutionPolicy Bypass -Scope Process -Force `
&& Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

# --- 安装 cmake | run as administrator
choco install cmake --version=3.30.5 -y

# --- 安装 IDE C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\devenv.exe
choco install visualstudio2022community -y --package-parameters "--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64"
choco install visualstudio2022-workload-nativedesktop -y

# --- 安装 SDK
winget install --id Microsoft.WindowsSDK.10.0.19041 --version 10.0.19041.685

# --- 安装 IDE C:\tools\qtcreator\bin\qtcreator.exe
choco install qtcreator --version=14.0.1 -y

# --- 安装 vcpkg
Set-Location "E:\casper\repositories\repositories\sri-project.yancheng.master\yancheng-client"
git clone -c http.proxy="http://127.0.0.1:7890" https://github.com/microsoft/vcpkg.git
.\vcpkg\bootstrap-vcpkg.bat

# --- 安装依赖
subst Z: "E:\casper\repositories\repositories\sri-project.yancheng.master"
Set-Location "Z:\yancheng-client"
.\vcpkg\vcpkg.exe install --x-manifest-root=".\3rdparty\qt6"
.\vcpkg\vcpkg.exe install --x-manifest-root=".\3rdparty\opencv"
.\vcpkg\vcpkg.exe install --x-manifest-root=".\3rdparty\zmq"
subst Z: /D