CMake: Make grpc chat example build as external project with qemu CI

Make sure to look for the ProtobufTools and GrpcTools packages
explicitly, for the grpc 'chat' example, to ensure the public
CMake API is available when the example is built as an external
project.

The Tools packages are not looked up automatically because the target
sysroot is missing protobuf tools dependencies, and thus we never
record a dependency from the target library packages to the tools
packages.

Augments 68b2e1db08
Adapts to 63b9cc81df

Pick-to: 6.8
Task-number: QTBUG-90820
Task-number: QTBUG-96232
Task-number: QTBUG-110849
Change-Id: I036a37e0fb9c81de325a33ab6ae7322d14ae0cbc
Reviewed-by:  Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
Alexandru Croitor 2024-08-16 14:20:02 +02:00
parent 0306293011
commit 9968b84cf7
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ endif()
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/grpc/chat")
find_package(Qt6 REQUIRED COMPONENTS Core Protobuf Grpc Quick)
find_package(Qt6 REQUIRED COMPONENTS Core Protobuf ProtobufTools Grpc GrpcTools Quick)
qt_standard_project_setup()