mirror of https://github.com/qt/qtgrpc.git
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> |
||
|---|---|---|
| .. | ||
| FindWrapProtobuf.cmake | ||
| FindWrapProtoc.cmake | ||
| FindWrapgRPC.cmake | ||
| FindWrapgRPCPlugin.cmake | ||