cmake: [skip ci] build with Qt6 requires the module QtSvgWidgets

This commit is contained in:
wmayer
2022-11-02 14:40:40 +01:00
parent 78a823141a
commit e610d884eb
2 changed files with 4 additions and 1 deletions

View File

@@ -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()
endif()

View File

@@ -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}
)