[env]: Change hard-code settings to be generated by py

This commit is contained in:
fanlumaster
2025-06-02 10:12:09 +08:00
parent 01514100a1
commit 5cd5964351
13 changed files with 288 additions and 27 deletions

View File

@ -31,10 +31,11 @@ if (-not (Test-Path $buildFolderPath)) {
Write-Host "build folder created."
}
cmake -G "Visual Studio 17 2022" -A x64 -S . -B ./build/
# cmake -G -A x64 -DCMAKE_TOOLCHAIN_FILE=C:/Users/SonnyCalcr/scoop/apps/vcpkg/current/scripts/buildsystems/vcpkg.cmake -S . -B ./build/
cmake --preset=default
if ($LASTEXITCODE -eq 0) {
cmake --build ./build/ --config DEBUG
cmake --build build
if ($LASTEXITCODE -eq 0) {
$exePath = getExePathFromCMakeLists
Write-Host "start running as follows..."
@ -42,4 +43,3 @@ if ($LASTEXITCODE -eq 0) {
Invoke-Expression $exePath
}
}