/se-design-template

Template for a simple software design exercise

Primary LanguageC++

This is a template for some simple design and programming exercises using C++.

Building with CMake

  1. Create a new directory for building.

     mkdir build
    
  2. Change into the new directory.

     cd build
    
  3. Run CMake with the path to the source.

     cmake ../se-design-template
    
  4. 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.

Running Tests

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