Index: denali.pro =================================================================== diff -u -r9a3ee027dbc33f39ee7df2a9dc5a7897c6b1854d -rf623529d6ec25b555f3ac2248d71fc2b5e7063d6 --- denali.pro (.../denali.pro) (revision 9a3ee027dbc33f39ee7df2a9dc5a7897c6b1854d) +++ denali.pro (.../denali.pro) (revision f623529d6ec25b555f3ac2248d71fc2b5e7063d6) @@ -1,5 +1,5 @@ -QT += quick serialbus -CONFIG += c++17 -Wall +QT += widgets qml quick serialbus +CONFIG += c++17 warn_on # The following define makes your compiler emit warnings if you use # any Qt feature that has been marked deprecated (the exact warnings @@ -61,7 +61,31 @@ VER_REVIS="\\\"${buildNumber}\\\"" \ VER_DEVEL="999" +CodeCoverage { + message(Building with Squish Coco) + COVERAGE_OPTIONS += --cs-qt4 + COVERAGE_OPTIONS += --cs-exclude-path=build=testunits + COVERAGE_OPTIONS += --cs-exclude-file-regex=ui_.* + COVERAGE_OPTIONS += --cs-exclude-file-regex=moc_.* + COVERAGE_OPTIONS += --cs-exclude-file-regex=main.cpp + COVERAGE_OPTIONS += --cs-exclude-file-regex=unittests.* + COVERAGE_OPTIONS += --cs-exclude-file-regex=qmlcache* + QMAKE_CFLAGS += $$COVERAGE_OPTIONS + QMAKE_CXXFLAGS += $$COVERAGE_OPTIONS + QMAKE_LFLAGS += $$COVERAGE_OPTIONS +} + +testcase { + message(Building with QtTest) + QT += testlib + DEFINES += UNIT_TEST + HEADERS += \ + unittests/unittests.h + SOURCES += \ + unittests/unittests.cpp +} + # Additional import path used to resolve QML modules in Qt Creator's code model QML_IMPORT_PATH =