added possibility to generate coverage reports

This commit is contained in:
Michael Zanetti 2014-05-02 04:32:49 +02:00
parent 7c6577bd79
commit 265d734ab8
3 changed files with 10 additions and 0 deletions

6
guh.pri Normal file
View File

@ -0,0 +1,6 @@
coverage {
message("Building coverage.")
QMAKE_CXXFLAGS += -fprofile-arcs -ftest-coverage -O0
LIBS += -lgcov
QMAKE_LFLAGS += -fprofile-arcs
}

View File

@ -1,3 +1,5 @@
include(../guh.pri)
TARGET = guh
TEMPLATE = lib

View File

@ -1,3 +1,5 @@
include(../guh.pri)
TARGET = guh
TEMPLATE = app