Skip to content

Commit 9d9d06c

Browse files
committed
[commontk] cmake: Update Qt wrapped library to component mapping for Qt6
This updates the mapping of Qt wrapped libraries to components to support Qt6. Additional dependencies for certain components are included when PythonQt_QT_VERSION is 6.
1 parent 74b5f9a commit 9d9d06c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,19 @@ set(qtlib_to_wraplib_Widgets gui)
7777
set(qtlib_to_wraplib_WebKitWidgets webkit)
7878

7979
set(qt_wrapped_lib_depends_gui Multimedia PrintSupport)
80+
if(PythonQt_QT_VERSION VERSION_EQUAL "6")
81+
list(APPEND qt_wrapped_lib_depends_gui Widgets OpenGL)
82+
endif()
8083
set(qt_wrapped_lib_depends_multimedia MultimediaWidgets)
8184
set(qt_wrapped_lib_depends_quick QuickWidgets)
85+
set(qt_wrapped_lib_depends_svg )
86+
if(PythonQt_QT_VERSION VERSION_EQUAL "6")
87+
list(APPEND qt_wrapped_lib_depends_svg SvgWidgets)
88+
endif()
89+
set(qt_wrapped_lib_depends_webkit )
90+
if(PythonQt_QT_VERSION VERSION_EQUAL "6")
91+
list(APPEND qt_wrapped_lib_depends_webkit WebKitWidgets)
92+
endif()
8293

8394
foreach(qtlib ${qtlibs})
8495
string(TOLOWER ${qtlib} qtlib_lowercase)

0 commit comments

Comments
 (0)