qtgrpc/cmake
Alexandru Croitor 68b2e1db08 CMake: Make examples build as external projects
A couple of things are needed to ensure examples can be built as
external projects.

Change FindWrapgRPCPlugin to look for a cache var in addition to _ROOT
env var, because we can't easily pass env vars to external projects.

Ensure one of the non-Qt test libraries is built with at least C++17
to avoid compilation errors.

Derive a path to absl_ROOT from gRPC_ROOT assuming they are in the
same parent directory.

Use the new QT_EXAMPLE_CMAKE_VARS_TO_PASS variable introduced in
qtbase to allow passing additional cmake variables to all examples
that are built as external projects.
We need to use it for all 3rd party dependencies that have to be
found by the examples.

Make sure to look for GrpcTools package for magic8ball example, to
ensure the public api is available when cross-compiling, but there
is no target native grpc library available.

Task-number: QTBUG-90820
Task-number: QTBUG-96232
Change-Id: I4420b7348c6a3b02b5516f34a96b19cceaccc649
Reviewed-by:  Alexey Edelev <alexey.edelev@qt.io>
2024-03-06 17:14:45 +01:00
..
FindWrapProtobuf.cmake Add versioning support to WrapProtobuf and WrapProtoc packages 2023-08-14 17:46:03 +02:00
FindWrapProtoc.cmake Add versioning support to WrapProtobuf and WrapProtoc packages 2023-08-14 17:46:03 +02:00
FindWrapgRPC.cmake Add the missing lookup of gRPC::grpc library in pkg config case 2023-09-15 15:57:06 +02:00
FindWrapgRPCPlugin.cmake CMake: Make examples build as external projects 2024-03-06 17:14:45 +01:00