Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 801 Bytes

README.md

File metadata and controls

53 lines (38 loc) · 801 Bytes

A skeleton CMake C++ library project with Google Test support

Setup

To start your own project

  • clone this repository
$ git clone [email protected]: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

Build

Debug and Test

$ mkdir -p build
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=Debug ../
$ cmake --build .
$ ctest

To see Google Tests' verbose output, do

$ ctest -V

Release

$ mkdir -p build
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=Release ../
$ cmake --build .

Install

$ cd build
$ cmake --build . --clean-first --target install