From d462d802958657ffbaefb6794adf409eceb9975c Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Fri, 23 Dec 2016 14:07:30 +0100
Subject: [PATCH] Testrunner is a non-gui application.

---
 Tests/CMakeLists.txt | 8 --------
 Tests/testrunner.cpp | 4 ++--
 2 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index b98f1586537..5d93e293cc2 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -56,14 +56,6 @@ if(OGS_USE_MPI)
     target_link_libraries(testrunner ${MPI_CXX_LIBRARIES})
 endif()
 
-if(OGS_BUILD_GUI)
-    target_link_libraries(testrunner
-        QtDataView
-        QtStratView
-        VtkVis
-    )
-endif()
-
 if(OGS_BUILD_SWMM)
     target_link_libraries(testrunner SwmmInterface)
 endif()
diff --git a/Tests/testrunner.cpp b/Tests/testrunner.cpp
index b14fe810ef1..ff54882b684 100644
--- a/Tests/testrunner.cpp
+++ b/Tests/testrunner.cpp
@@ -24,7 +24,7 @@
 #include "BaseLib/TemplateLogogFormatterSuppressedGCC.h"
 
 #ifdef OGS_BUILD_GUI
-#include <QApplication>
+#include <QCoreApplication>
 #endif
 
 /// Implementation of the googletest testrunner
@@ -41,7 +41,7 @@ int main(int argc, char* argv[])
 
     setlocale(LC_ALL, "C");
 #ifdef OGS_BUILD_GUI
-    QApplication app(argc, argv, false);
+    QCoreApplication app(argc, argv, false);
 #endif
 
     // Attention: Order matters!
-- 
GitLab