From deaa0cc137bcc00bee815ad3be9655b40c71c472 Mon Sep 17 00:00:00 2001
From: Tobias Hunger <tobias.hunger@nokia.com>
Date: Mon, 29 Mar 2010 17:59:27 +0200
Subject: [PATCH] Only build outputparser tester when compileing with tests

---
 src/plugins/projectexplorer/outputparser_test.cpp | 4 ++++
 src/plugins/projectexplorer/outputparser_test.h   | 4 ++++
 2 files changed, 8 insertions(+)

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