A C boilerplate/starter project with CMake and Check unit testing support.
I use Check to perform unit testing. It must be installed on your system before running any tests.
If Check is installed in a non standard location uncomment the following line in CMakeLists.txt
and change the directory location:
set(CHECK_INSTALL_DIR path/to/check)
Make the following changes to CMakeLists.txt
:
set(PROJECT_NAME yourProjectName)
cd c-starter
mkdir build
cmake ..
To run unit tests:
make test
Complete the build by running:
cmake --build .
I welcome all issues and pull requests. If you can make this better, go for it :)