cmake: [skip ci] build with Qt6 requires the module QtSvgWidgets
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user