This project is a derivative of ccspec-example project, however this repo fixes some compilation and build issues in the original repo.
It provides a simple C++ project template that integrates with the ccspec unit testing library, however we are using an updated fork, which itself is a fork of this fork which fixes coloring and other nuances.
- CMake Project Template project that uses the Google Test Library.
You need to have:
- recent C++ compiler that supports C++17
- recent
cmake
installed
First, clone the project into a folder:
$ git clone https://github.com/kigster/cmake-ccspec-template
$ cd cmake-ccspec-template
You can use the provided BASH script ./run.sh
to build and run all the tests.
Start by initializing ccspec git submodule. This step is crucially important, as it pulls the ccspec
library into the project.
$ git submodule init && git submodule update
Next we can use standard CMake semantics to build our project:
$ mkdir -p build && cd build
$ cmake ..
$ make -j 4
$ make install
$ cd ..
This should build all dependencies, and then you can run the tests:
$ bin/binary-tree-specs
You should see something like the following output:
People:
Repos: