Remove Qt SVG and Qt OpenGL as hard dependencies
authorWuzzy <Wuzzy2@mail.ru>
Thu, 15 Mar 2018 21:15:16 +0100
changeset 13226 02bf6902eeb0
parent 13225 1c390781f72f
child 13227 d6364e31f9c9
Remove Qt SVG and Qt OpenGL as hard dependencies Qt SVG is not used in the frontend (no SVGs are rendered). Neither is Qt OpenGL used. Qt OpenGL is discouraged anyway.
QTfrontend/CMakeLists.txt
project_files/hedgewars.pro
--- a/QTfrontend/CMakeLists.txt	Thu Mar 15 17:53:34 2018 +0100
+++ b/QTfrontend/CMakeLists.txt	Thu Mar 15 21:15:16 2018 +0100
@@ -1,4 +1,4 @@
-find_package(Qt5 COMPONENTS Core Gui Network Svg Xml OpenGL)
+find_package(Qt5 COMPONENTS Core Widgets Gui Network Xml)
 
 include_directories(${Qt5Core_PRIVATE_INCLUDE_DIRS})
 
@@ -182,7 +182,7 @@
 
 list(APPEND HW_LINK_LIBS
     physfs physlayer
-    Qt5::Core Qt5::Gui Qt5::Network Qt5::Svg Qt5::Xml Qt5::OpenGL
+    Qt5::Core Qt5::Widgets Qt5::Gui Qt5::Network Qt5::Xml
     )
 
 list(APPEND HW_LINK_LIBS
--- a/project_files/hedgewars.pro	Thu Mar 15 17:53:34 2018 +0100
+++ b/project_files/hedgewars.pro	Thu Mar 15 21:15:16 2018 +0100
@@ -16,6 +16,7 @@
 
 DESTDIR = ../bin
 
+QT += widgets
 QT += network
 QT += webkit