cMake: Add support for compiling against Qt6 (#7647)
Removes the BUILD_QT5 flag and adds a new FREECAD_QT_VERSION option, which can be set to either "Auto" (default), 5, or 6. Auto detects which version of Qt is installed on the system and chooses it. If both version are installed, Qt5 is used. Note that this DOES NOT implement compiling against Qt6, it only adds the necessary cMake infrastructure to begin work on the source code changes that will be required.
This commit is contained in:
@@ -39,13 +39,7 @@ set(MeshPartGui_UIC_SRCS
|
||||
Tessellation.ui
|
||||
)
|
||||
|
||||
if(BUILD_QT5)
|
||||
qt5_add_resources(MeshPartGui_QRC_SRCS Resources/MeshPart.qrc)
|
||||
qt5_wrap_ui(MeshPartGui_UIC_HDRS ${MeshPartGui_UIC_SRCS})
|
||||
else()
|
||||
qt4_add_resources(MeshPartGui_QRC_SRCS Resources/MeshPart.qrc)
|
||||
qt4_wrap_ui(MeshPartGui_UIC_HDRS ${MeshPartGui_UIC_SRCS})
|
||||
endif()
|
||||
qt_add_resources(MeshPartGui_QRC_SRCS Resources/MeshPart.qrc)
|
||||
|
||||
SET(MeshPartGui_SRCS
|
||||
${MeshPartGui_QRC_SRCS}
|
||||
|
||||
Reference in New Issue
Block a user