Commit deaa0cc1 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Only build outputparser tester when compileing with tests

parent e9e84fc1
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
#include "outputparser_test.h" #include "outputparser_test.h"
#if defined(WITH_TESTS)
#include <QtTest> #include <QtTest>
using namespace ProjectExplorer; using namespace ProjectExplorer;
...@@ -157,3 +159,5 @@ void OutputParserTester::reset() ...@@ -157,3 +159,5 @@ void OutputParserTester::reset()
m_receivedTasks.clear(); m_receivedTasks.clear();
m_receivedOutput = QString(); m_receivedOutput = QString();
} }
#endif
...@@ -30,6 +30,8 @@ ...@@ -30,6 +30,8 @@
#ifndef OUTPUTPARSER_TESTER_H #ifndef OUTPUTPARSER_TESTER_H
#define OUTPUTPARSER_TESTER_H #define OUTPUTPARSER_TESTER_H
#if defined(WITH_TESTS)
#include "projectexplorer_export.h" #include "projectexplorer_export.h"
#include "ioutputparser.h" #include "ioutputparser.h"
...@@ -86,4 +88,6 @@ private: ...@@ -86,4 +88,6 @@ private:
Q_DECLARE_METATYPE(ProjectExplorer::OutputParserTester::Channel) Q_DECLARE_METATYPE(ProjectExplorer::OutputParserTester::Channel)
#endif
#endif // OUTPUTPARSER_TESTER_H #endif // OUTPUTPARSER_TESTER_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment