This is a template for some simple design and programming exercises using C++.
-
Create a new directory for building.
mkdir build
-
Change into the new directory.
cd build
-
Run CMake with the path to the source.
cmake ../se-design-template
-
Run make inside the build directory:
make
By default, this should produce binaries for several test cases inside tests/
.
Note, building with a tool like ninja can be done by adding -G Ninja
to
the cmake invocation and running ninja instead of make.
You can run all tests automatically by simply running:
make test
Note that this will not show you exactly which tests failed and why. You can see this by running individual test binaries from within your build directory, e.g.:
tests/expressions-evaluation