RSSAmplifier

smhk · Nov 25, 2024

CMake and coverage with gcov

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

TL;DR: To generate coverage data in CMake: enable CTest, enable debug, build and link all relevant targets with --coverage , then run ctest --test-dir build -T Coverage . Use gcov or lcov to generate a CLI or HTML coverage report respectively.

Read on smhk.net

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.