CMake-codecov

(β˜… 98)

CMake module for code coverage

  • CMakeLists.txt
  • LICENSE
  • README.md

# Installation Guide

1. Get the code
git clone https://github.com/RWTH-HPC/CMake-codecov

Downloads the entire project code from GitHub to your computer.

cd CMake-codecov

Moves into the project folder you just downloaded.

2. CMake

Medium Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • CMake The tool used to generate build configuration.
  • C/C++ 컴파일러 Windows needs Visual Studio (Community edition, free), macOS needs Xcode Command Line Tools, Linux needs the gcc/g++ package.
git submodule add git://github.com/RWTH-HPC/CMake-codecov.git externals/CMake-codecov

Type this command into your terminal and run it.

If you don't use git or dislike submodules you can copy the [Findcodecov.cmake](cmake/Findcodecov.cmake), [FindGcov.cmake](cmake/FindGcov.cmake) and [FindLcov.cmake](cmake/FindLcov.cmake) files into your repository. *Be careful when there are version updates of this repository!*

Type this command into your terminal and run it.

Next you have to include the codecov package. This can be done in your root CMake file, or in the file where your targets will be defined:

Type this command into your terminal and run it.

βœ… Check that an executable was created inside the build folder, then run it directly (e.g. ./build/app_name).

Pulled directly from this repo's README.

// repository documentation