DEFINES += SRCDIR=\\\"$$PWD/\\\"
HEADERS += CommonDictInterfaceMock.h \
../../src/mdictionary/backbone/backbone.h \
- ../../src/common/translation.h \
- ../../src/common/settings.h \
- ../../src/common/CommonDictInterface.h \
- ../../src/common/History.h \
+ ../../src/include/translation.h \
+ ../../src/include/settings.h \
+ ../../src/include/CommonDictInterface.h \
+ ../../src/include/History.h \
TranslationMock.h \
../../src/mdictionary/backbone/BookmarkTranslations.h \
../../src/mdictionary/backbone/Bookmarks.h \
../../src/mdictionary/backbone/ConfigGenerator.h
+
+
target.path = .
target.commands += ./mDictionaryTests
INSTALLS += target
+
+
+coverage {
+ LIBS += -lgcov
+ QMAKE_CXXFLAGS += -ftest-coverage -fprofile-arcs -fno-elide-constructors
+}
+
+check.depends = $$TARGET
+check.commands = ./mDictionaryTests
+QMAKE_EXTRA_TARGETS += check