X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=mdictionary.pro;h=f501bf2082db4868c114cceb34b22eff4eabcda2;hb=13b5b4a9d4a12b9b44253a6346c1a53b19212a58;hp=ee0ade9cc0a40aba96916272d4711688508e44d1;hpb=6552e14c830b3de28e1688b8a6b94c09317beac1;p=mdictionary diff --git a/mdictionary.pro b/mdictionary.pro index ee0ade9..f501bf2 100644 --- a/mdictionary.pro +++ b/mdictionary.pro @@ -1,6 +1,13 @@ TEMPLATE = subdirs +SUBDIRS = src tests +CONFIG += ordered include (mdictionary.pri) -SUBDIRS = src + + +check.CONFIG += recursive +check.recurse = src tests +check.depends = install +QMAKE_EXTRA_TARGETS += check message("Enabled sources: "$$ENABLED_SRC) message("Enabled plugins: "$$ENABLED_PLUGINS) @@ -10,3 +17,15 @@ message("Binary directory: "$$BIN_DIR) message("Data directory: "$$DATA_DIR) message("Plugins directory: "$$PLUGINS_DIR) message("Documentation directory: "$$DOCS_DIR) + + +if(coverage) { + coverage-report.CONFIG = recursive + coverage-report.recurse = src + QMAKE_EXTRA_TARGETS += coverage-report + message('******************************************************************' ) + message('* Remember to disable CCACHE in scratchbox to make Code Coverage' ) + message('* report!' ) + message('* use command: export SBOX_USE_CCACHE="no"' ) + message('******************************************************************' ) +}