This repo contains a barebone template C project.
This project uses CMake as the primary build-generation tools
and Gtest as the unit-testing framwork.
The goal of this repo is to speed up the setup period and get you started coding as fast as possible.
- Install CMake (on debian based system use
apt-get install cmake
). - Checkout the Google Test framework into
test/gtest
. - Add your sources into source/ directory
- Add your tests into test/ directory
- Modify the CMake files accordingly
$ mkdir build
$ cd build
$ cmake ..
- Assuming you configured cmake, and you are in the build directory...
- To compile use :
- To invoke the unit-tests use :
This was only tested on linux (Ubuntu 12.04 specifically).
Let me know if you try it out on other systems.
Please feel free to contact me at : [email protected] .
Also, all contribuation are welcome via a pull request.