To start your own project
- clone this repository
$ git clone git@github.com:mtavkhelidze/cmake-and-gtest-skeleton.git
- set your own
origin
$ git remote set-url origin the_url_of_your_repo_here
$ git push -u origin master
- add/remove files in
src/CMakeList.txt
, develop, commit, and push as normal
$ mkdir -p build
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=Debug ../
$ cmake --build .
$ ctest
To see Google Tests' verbose output, do
$ ctest -V
$ mkdir -p build
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=Release ../
$ cmake --build .
$ cd build
$ cmake --build . --clean-first --target install