Skip to content

Commit

Permalink
Add script to compile all cmake folders
Browse files Browse the repository at this point in the history
  • Loading branch information
TLCFEM committed Sep 1, 2023
1 parent 988e441 commit aa41a96
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Script/CompileAll.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
if (Test-Path -Path "CompileAll.ps1") {
Set-Location -Path ..
}

$folders = Get-ChildItem -Directory -Name -Path . | Where-Object { $_ -like "cmake-build*" }
foreach ($folder in $folders) {
Write-Output "Compiling $folder"
Set-Location -Path $folder
cmake --build .
Set-Location -Path ..
}

0 comments on commit aa41a96

Please sign in to comment.