3d-project-C-base/build.ps1

15 lines
No EOL
368 B
PowerShell

# build.ps1 - configure and build the project (Windows/MSVC)
cmake -B build
if ($LASTEXITCODE -ne 0) {
Write-Error "CMake configure failed."
exit $LASTEXITCODE
}
cmake --build build --config Debug
if ($LASTEXITCODE -ne 0) {
Write-Error "Build failed."
exit $LASTEXITCODE
}
Write-Host "Build succeeded: build\Debug\hello3d.exe" -ForegroundColor Green