CMake: Explictly add QtOpenGLWidgets

Necessary for manually-compiled Qt 6.9 builds.
This commit is contained in:
Chris Hennes
2025-07-18 08:27:46 -05:00
committed by Benjamin Nauck
parent 05505e3f31
commit 22b820a749
3 changed files with 4 additions and 0 deletions

View File

@@ -166,6 +166,7 @@ macro(PrintFinalReport)
simple(QtCore ${QtCore_VERSION})
simple(QtNetwork ${QtNetwork_VERSION})
conditional(QtOpenGL BUILD_GUI "not needed" ${QtOpenGL_VERSION})
conditional(QtOpenGLWidgets BUILD_GUI "not needed" ${QtOpenGLWidgets_VERSION})
conditional(QtPrintSupport BUILD_GUI "not needed" ${QtPrintSupport_VERSION})
conditional(QtSvg BUILD_GUI "not needed" ${QtSvg_VERSION})
conditional(QtUiTools BUILD_GUI "not needed" ${QtUiTools_VERSION})

View File

@@ -13,6 +13,7 @@ if(BUILD_GUI)
elseif (FREECAD_QT_MAJOR_VERSION EQUAL 6)
list (APPEND FREECAD_QT_COMPONENTS GuiTools)
list (APPEND FREECAD_QT_COMPONENTS SvgWidgets)
list (APPEND FREECAD_QT_COMPONENTS OpenGLWidgets)
endif()
list (APPEND FREECAD_QT_COMPONENTS OpenGL PrintSupport Svg UiTools Widgets LinguistTools)

View File

@@ -128,6 +128,7 @@ target_include_directories(
${QtCore_INCLUDE_DIRS}
${QtWidgets_INCLUDE_DIRS}
${QtOpenGL_INCLUDE_DIRS}
${QtOpenGLWidgets_INCLUDE_DIRS}
${QtPrintSupport_INCLUDE_DIRS}
${QtSvg_INCLUDE_DIRS}
${QtSvgWidgets_INCLUDE_DIRS}
@@ -139,6 +140,7 @@ list(APPEND FreeCADGui_LIBS
${QtCore_LIBRARIES}
${QtWidgets_LIBRARIES}
${QtOpenGL_LIBRARIES}
${QtOpenGLWidgets_LIBRARIES}
${QtPrintSupport_LIBRARIES}
${QtSvg_LIBRARIES}
${QtSvgWidgets_LIBRARIES}