My GCC compiler version (actually the QNX q++ compiler) requires me to specify the following command line arguments to generate code coverage metrics
-ftest-coverage -fprofile-arcs -nopipe -Wc,-auxbase-strip,$@
The first couple of options are obviously simple to add, but the last option poses more issues
-Wc,-auxbase-strip,$@
Here, $@ is the makefile variable for the name of the target being generated which, in this case, needs to be the name of the current object file being generated.
Is there a way achieve this argument in CMake?