Skip to content

Commit 4150f53

Browse files
deepin-ci-robotComixHe
authored andcommitted
sync: from linuxdeepin/dtkwidget
Synchronize source files from linuxdeepin/dtkwidget. Source-pull-request: linuxdeepin/dtkwidget#687
1 parent 0e488cf commit 4150f53

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dtkwidget.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ find_package(PkgConfig REQUIRED)
4949

5050
if("${QT_VERSION_MAJOR}" STREQUAL "5")
5151
find_package(Qt5 REQUIRED COMPONENTS X11Extras)
52+
elseif("${QT_VERSION_MAJOR}" STREQUAL "6")
53+
if (${Qt6Core_VERSION} VERSION_GREATER_EQUAL "6.10.0")
54+
set(QT_NO_PRIVATE_MODULE_WARNING ON)
55+
find_package(Qt6 REQUIRED COMPONENTS GuiPrivate WidgetsPrivate PrintSupportPrivate)
56+
endif()
57+
else()
58+
message(FATAL_ERROR "Unsupported Qt Version: ${QT_VERSION_MAJOR}")
5259
endif()
5360

5461
file(GLOB D_HEADERS "${PROJECT_SOURCE_DIR}/include/DWidget/*")

0 commit comments

Comments
 (0)