Additional make target (for code coverage using gcc/gcov)

  • Does anyone know of a way to make qmake add additional make targets (in addition to debug and release) to the created make files, and define how these targets are built?

    What I want to do is add a 'coverage' target that performs a debug build with the additional -fprofile-arcs and -ftest-coverage options passed to the compiler and linker, and linking with the gcov library.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.