Skip to content

mtavkhelidze/cmake-and-gtest-skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published