CMake: Add explicit lookup of ProtobufQuick package for magic8ball

Otherwise the example fails to configure when building as as an
external project in CI, with the errors:

 CMake Error at Qt6ProtobufTools/Qt6ProtobufToolsMacros.cmake:605
 (target_link_libraries):
 Target "magic8ball_plugin" links to: Qt6::ProtobufQuick but the target
 was not found.

Pick-to: 6.8
Change-Id: Iab3a8c6162f885efd149374a73f8599c1f375aed
Reviewed-by: Dennis Oberst <dennis.oberst@qt.io>
Reviewed-by:  Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
Alexandru Croitor 2024-07-12 18:53:08 +02:00
parent 1ff1cd4acb
commit 5edd77f14b
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/grpc/magic8ball")
find_package(Qt6 REQUIRED COMPONENTS
Core
Protobuf
ProtobufQuick
Grpc
GrpcQuick
GrpcTools