Only build outputparser tester when compileing with tests

This commit is contained in:
Tobias Hunger
2010-03-29 17:59:27 +02:00
parent e9e84fc1be
commit deaa0cc137
2 changed files with 8 additions and 0 deletions

View File

@@ -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

View File

@@ -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