From e610d884eb940250b76d0032acdef75e88e6a702 Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 2 Nov 2022 14:40:40 +0100 Subject: [PATCH] cmake: [skip ci] build with Qt6 requires the module QtSvgWidgets --- cMake/FreeCAD_Helpers/SetupQt.cmake | 3 ++- src/Gui/CMakeLists.txt | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cMake/FreeCAD_Helpers/SetupQt.cmake b/cMake/FreeCAD_Helpers/SetupQt.cmake index e0a8fc4cf5..25ba9f8903 100644 --- a/cMake/FreeCAD_Helpers/SetupQt.cmake +++ b/cMake/FreeCAD_Helpers/SetupQt.cmake @@ -7,6 +7,7 @@ endif() if(BUILD_GUI) if (FREECAD_QT_MAJOR_VERSION EQUAL 6) list (APPEND FREECAD_QT_COMPONENTS GuiTools) + list (APPEND FREECAD_QT_COMPONENTS SvgWidgets) endif() list (APPEND FREECAD_QT_COMPONENTS OpenGL PrintSupport Svg UiTools Widgets) if (BUILD_WEB) @@ -52,4 +53,4 @@ if (Qt${FREECAD_QT_MAJOR_VERSION}Core_VERSION VERSION_LESS 5.15.0) qt5_wrap_cpp("${outfiles}" ${ARGN}) set("${outfiles}" "${${outfiles}}" PARENT_SCOPE) endfunction() -endif() \ No newline at end of file +endif() diff --git a/src/Gui/CMakeLists.txt b/src/Gui/CMakeLists.txt index 0a9ec6d302..2c23b7e7bb 100644 --- a/src/Gui/CMakeLists.txt +++ b/src/Gui/CMakeLists.txt @@ -88,6 +88,7 @@ include_directories( ${QtOpenGL_INCLUDE_DIRS} ${QtPrintSupport_INCLUDE_DIRS} ${QtSvg_INCLUDE_DIRS} + ${QtSvgWidgets_INCLUDE_DIRS} ${QtNetwork_INCLUDE_DIRS} ${QtUiTools_INCLUDE_DIRS} ) @@ -97,6 +98,7 @@ list(APPEND FreeCADGui_LIBS ${QtOpenGL_LIBRARIES} ${QtPrintSupport_LIBRARIES} ${QtSvg_LIBRARIES} + ${QtSvgWidgets_LIBRARIES} ${QtNetwork_LIBRARIES} ${QtUiTools_LIBRARIES} )