From c992072f3441ccd78da8d6ce07e1388719a9a065 Mon Sep 17 00:00:00 2001
From: Tobias Triffterer <tobias@ep1.ruhr-uni-bochum.de>
Date: Mon, 3 May 2021 22:52:40 +0200
Subject: [PATCH] Add Dependency on Qt5 Network Module
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Managing the SSL certificates requires the class “QSslCertificate” which
is part of Qt5 Network.
---
 CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 13066b8..e4b5659 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -43,7 +43,7 @@ endif(NOT CMAKE_CXX_STANDARD)
 set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
 
 # Find Qt
-find_package(Qt5 COMPONENTS Core Gui Widgets DBus LinguistTools CONFIG REQUIRED)
+find_package(Qt5 COMPONENTS Core Gui Widgets DBus Network LinguistTools CONFIG REQUIRED)
 # Instruct CMake to run moc automatically when needed.
 set(CMAKE_AUTOMOC ON)
 # Instruct CMake to run qrc automatically when needed.
@@ -93,7 +93,7 @@ target_include_directories(fp311online PUBLIC ${CMAKE_CURRENT_BINARY_DIR} src/)
 
 add_dependencies(fp311online libfp311online_versioning)
 
-target_link_libraries(fp311online PUBLIC Qt5::Core Qt5::Gui Qt5::Widgets ROOT::Hist ROOT::HistPainter ROOT::Minuit2 ROOT::RooFit -lpthread)
+target_link_libraries(fp311online PUBLIC Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Network ROOT::Hist ROOT::HistPainter ROOT::Minuit2 ROOT::RooFit -lpthread)
 
 set_property(TARGET fp311online PROPERTY POSITION_INDEPENDENT_CODE ON)
 set_property(TARGET fp311online PROPERTY CXX_VISIBILITY_PRESET hidden)
-- 
GitLab