diff options
author | Tobias Hunger <tobias.hunger@nokia.com> | 2010-03-29 17:59:27 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@nokia.com> | 2010-03-29 19:42:12 +0200 |
commit | deaa0cc137bcc00bee815ad3be9655b40c71c472 (patch) | |
tree | 91820fdad74db67d709e43863fd614108da02ba8 /src | |
parent | e9e84fc1be8acea8b9ae09c5c15e38a6057221c8 (diff) |
Only build outputparser tester when compileing with tests
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/projectexplorer/outputparser_test.cpp | 4 | ||||
-rw-r--r-- | src/plugins/projectexplorer/outputparser_test.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/outputparser_test.cpp b/src/plugins/projectexplorer/outputparser_test.cpp index 09dc063979..7d9952c100 100644 --- a/src/plugins/projectexplorer/outputparser_test.cpp +++ b/src/plugins/projectexplorer/outputparser_test.cpp @@ -29,6 +29,8 @@ #include "outputparser_test.h" +#if defined(WITH_TESTS) + #include <QtTest> using namespace ProjectExplorer; @@ -157,3 +159,5 @@ void OutputParserTester::reset() m_receivedTasks.clear(); m_receivedOutput = QString(); } + +#endif diff --git a/src/plugins/projectexplorer/outputparser_test.h b/src/plugins/projectexplorer/outputparser_test.h index 89b2292c38..58f51f2d32 100644 --- a/src/plugins/projectexplorer/outputparser_test.h +++ b/src/plugins/projectexplorer/outputparser_test.h @@ -30,6 +30,8 @@ #ifndef OUTPUTPARSER_TESTER_H #define OUTPUTPARSER_TESTER_H +#if defined(WITH_TESTS) + #include "projectexplorer_export.h" #include "ioutputparser.h" @@ -86,4 +88,6 @@ private: Q_DECLARE_METATYPE(ProjectExplorer::OutputParserTester::Channel) +#endif + #endif // OUTPUTPARSER_TESTER_H |