-
Run powershell.
-
Install ninja.
Add it to the PATH. For example:
$ENV:PATH="$ENV:PATH;C:\Program Files\ninja"
-
Download clang-17 compiler from here (LLVM-17.0.1-win64.exe) and install it. Select "add LLVM to the PATH" while installing.
-
Build release version of google benchmark library. It doesn't matter which compiler you use to build it. Install google benchmark library with:
cmake --build "build" --config Release --target install
Add google benchmark library to PATH
$ENV:PATH="$ENV:PATH;C:\Program Files (x86)\benchmark\lib"
-
Go to any lab and check if local lab builds are working. You can find the CMake commands here, but note that you need to add
-G Ninja
to the CMake invocation. -
If everything works as expected, you can set environment variables permanently (run as Administrator):
# be carefull, back up your PATH setx /M PATH "$($env:path);C:\Program Files\ninja" setx /M PATH "$($env:path);C:\Program Files (x86)\benchmark\lib"