bilke / cmake-modules

Additional CMake functionality. Most of the modules are from Ryan Pavlik (https://github.com/rpavlik/cmake-modules)
Boost Software License 1.0
547 stars 214 forks source link

Change gcovr output to allow for Multiple Output Formats #67

Closed FranzBranntvino closed 2 years ago

FranzBranntvino commented 2 years ago

Change gcovr output from -o for --xml and --html output respectively. This will allow for Multiple Output Formats at teh soame time by making use of GCOVR_ADDITIONAL_ARGS, e.g. GCOVR_ADDITIONAL_ARGS "--txt".

pvheiningen commented 2 years ago

Quick heads-up that this change only works from gcovr version 4.0 (when the --html [OUTPUT] option was added)

See: https://gcovr.com/en/stable/changelog.html#june-2018

Format flag parameters like [--xml](https://gcovr.com/en/stable/guide.html#cmdoption-gcovr-x) or [--html](https://gcovr.com/en/stable/guide.html#cmdoption-gcovr-html) now take an optional output file name.