Index: denali.pro =================================================================== diff -u -r909090c5bae8b2fcc9aed6c2b55078b4f3d26fdd -rd3f916066c2d10c10fffa91fd8a7e5ac6dd86c7d --- denali.pro (.../denali.pro) (revision 909090c5bae8b2fcc9aed6c2b55078b4f3d26fdd) +++ denali.pro (.../denali.pro) (revision d3f916066c2d10c10fffa91fd8a7e5ac6dd86c7d) @@ -128,10 +128,12 @@ denali.qrc DEFINES += \ - VER_MAJOR="0" \ - VER_MINOR="4" \ - VER_REVIS="\\\"${buildNumber}\\\"" \ - VER_DEVEL=\\\"$$system( date "+%m%d%H%M" )\\\" + VER_MAJOR="\\\"${majorVersion}\\\"" \ + VER_MINOR="\\\"${minorVersion}\\\"" \ + VER_REVIS="\\\"${buildNumber}\\\"" \ + VER_MAJOR_DEV=\\\"0\\\" \ + VER_MINOR_DEV=\\\"9\\\" \ + VER_REVIS_DEV=\\\"$$system( date "+%m%d%H%M" )\\\" \ VER_APPLY=\\\"$$system( touch -m main.cpp)\\\" CodeCoverage { @@ -198,6 +200,60 @@ unittests/tst_acknow.cpp } +tst_models { + message(Building with QtTest test case models) + QT += testlib + DEFINES += UNIT_TEST \ + TEST_CLASS_INCLUDE=\\\"unittests/tst_models.h\\\" \ + TEST_CLASS_NAME=tst_models + HEADERS += \ + unittests/tst_models.h + SOURCES += \ + unittests/tst_models.cpp +} + +tst_views { + message(Building with QtTest test case views) + QT += testlib + DEFINES += UNIT_TEST \ + TEST_CLASS_INCLUDE=\\\"unittests/tst_views.h\\\" \ + TEST_CLASS_NAME=tst_views + HEADERS += \ + unittests/tst_views.h + SOURCES += \ + unittests/tst_views.cpp +} + +tst_initializations { + message(Building with QtTest test case initializations) + QT += testlib + DEFINES += UNIT_TEST \ + TEST_CLASS_INCLUDE=\\\"unittests/tst_initializations.h\\\" \ + TEST_CLASS_NAME=tst_initializations + HEADERS += unittests/tst_initializations.h + SOURCES += unittests/tst_initializations.cpp +} + +tst_threads { + message(Building with QtTest test case threads) + QT += testlib + DEFINES += UNIT_TEST \ + TEST_CLASS_INCLUDE=\\\"unittests/tst_threads.h\\\" \ + TEST_CLASS_NAME=tst_threads + HEADERS += unittests/tst_threads.h + SOURCES += unittests/tst_threads.cpp +} + +tst_messaging { + message(Building with QtTest test case messaging) + QT += testlib + DEFINES += UNIT_TEST \ + TEST_CLASS_INCLUDE=\\\"unittests/tst_messaging.h\\\" \ + TEST_CLASS_NAME=tst_messaging + HEADERS += unittests/tst_messaging.h + SOURCES += unittests/tst_messaging.cpp +} + # Additional import path used to resolve QML modules in Qt Creator's code model QML_IMPORT_PATH =