...
For popular build systems such as CMake or Bazel, dedicated packages simplify the integration process. For more information, see see Collecting Coverage for CMake Projects and Collecting Coverage for Bazel Projects.
For build systems without dedicated integration packages, custom integration is required. That involves modifying compilation and linking rules in appropriate build scripts. The goal is to prefix compilation command lines with the cpptestcc utility and extend the linker command line to include the code coverage tool runtime library.
...