Guide for building and running on Windows
There are several toolchain options for Windows. I chose the bare-bones Visual Studio 2019 command line tools.
- Windows 10
- Visual Studio Professional 2019
- Desktop (CLI) tools
See Install toolchain section to get started.
- open a Developer Command Prompt for Visual Studio 2019
- navigate to this project directory
cd build
cmake -G "NMake Makefiles" ..
nmake install
bin\start
You should see the test report as a tree of the test specs.
Use Developer PowerShell or Developer Command prompt at your option.
TODO Should rename start to test.
Download and install "Visual Studio Installer".
Visual Studio Installer
- Select Available tab
- Visual Studio Professional 2019
- Workloads
- Desktop development with C++
- Don't signin
You can now open "Developer PowerShell for VS 2019"
I think this included CMake tailored for MSVC.
Some tips on debugging
To see the program's exit code, enter $LastExitCode
The output will be decimal. It's usually useful to convert to hex.
Example: C0000135 missing dll
https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=msvc-160