Example of cross platform C++ CMake build with google tests
wsl
cd /mnt/c/code/c++/github.com/335is/hello_test
mkdir build
cd build
cmake -S ../ -B .
make
./hello_test
echo $?
%comspec% /k "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\Tools\VsDevCmd.bat"
cd C:\github.com\335is\hello_test
rd /s /q build
md build
cd build
cmake -S ../ -B .
cmake --build . --config Debug
cmake --build . --config Release
.\Debug\hello_test.exe
.\Release\hello_test.exe
echo %ERRORLEVEL%