Add Qt::Widgets package to qt5compat CMake file

According to the "widgets" CMake file in examples/core5: Qt::Widgets
package is needed to add "tools" subdirectory, which contains codecs
example.

Task-number: QTBUG-118061
Pick-to: 6.6 6.5
Change-Id: I9b48669a9a7e60b9c5e5b67e39c2fae5790e8bc9
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
This commit is contained in:
Rym Bouabid 2023-10-17 16:08:26 +02:00
parent 62fea7396c
commit 8bbd3aa03a
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ project(Qt5Compat # special case
)
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core)
find_package(Qt6 ${PROJECT_VERSION} QUIET CONFIG OPTIONAL_COMPONENTS Network Xml Gui Quick)
find_package(Qt6 ${PROJECT_VERSION} QUIET CONFIG OPTIONAL_COMPONENTS Network Xml Gui Widgets Quick)
qt_internal_project_setup()