Junch / cppworkshop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GoogleMock + gcov + CMake example

Build Status

This repository contains an example of use of CMake and GoogleMock for a C++ file. It is mostly for personal use.

Prerequisite

  • cmake should be installed
  • lcov should be installed on Mac: brew install lcov

Use

mkdir _build
cd _build
cmake -Dcoverage=ON ..
make
make test
ctest
make Test_coverage

Inspiration and thanks

I copied upon many, more documented examples found on StackOverflow and:

About


Languages

Language:C++ 94.3%Language:CMake 5.0%Language:Shell 0.6%Language:Batchfile 0.1%