qt6 support

This commit is contained in:
2022-01-31 19:54:39 +03:00
parent 73240ef898
commit fb56502f13
11 changed files with 175 additions and 33 deletions

View File

@@ -1,6 +1,6 @@
if (DESIGNER_PLUGINS)
if (NOT Qt5)
message(WARNING "Building ${PROJECT_NAME} available only on Qt5!")
if (NOT Qt5 AND NOT Qt6)
message(WARNING "Building ${PROJECT_NAME} available only on Qt5/6!")
else()
project(qglengine_plugin)
include_directories("..")
@@ -8,7 +8,7 @@ if (DESIGNER_PLUGINS)
add_definitions(-DQT_NO_DEBUG)
add_definitions(-DQT_SHARED)
add_definitions(-DQDESIGNER_EXPORT_WIDGETS)
find_qt(Qt5 Core Designer Gui Widgets OpenGL)
find_qt(Qt5 Qt6 Core Designer Gui Widgets OpenGL)
qt_sources(SRC)
qt_wrap(${SRC} CPPS out_CPP QMS out_QM)
qt_add_library(${PROJECT_NAME} SHARED out_CPP)