forked from qt-creator/qt-creator
Only build outputparser tester when compileing with tests
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user