qt6 support
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user