June 29, 2011

ludde ludde
Lab Rat
287 posts

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.

0 replies

  ‹‹ [SOLVED] QtCreator 2.2.1 crashes when debugging      Having to rebuild after switching build configurations. ››

You must log in to post a reply. Not a member yet? Register here!