diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index de9e453a..eb30fa2b 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -5,5 +5,6 @@ if(QT_BUILD_STANDALONE_TESTS) # Gui is need to build and run tests on Android Platforms. find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS Protobuf Grpc) find_package(Qt6 ${PROJECT_VERSION} QUIET CONFIG OPTIONAL_COMPONENTS Gui Quick QuickTest) + find_package(WrapgRPC QUIET) endif() qt_build_tests() diff --git a/tests/auto/grpc/CMakeLists.txt b/tests/auto/grpc/CMakeLists.txt index 9276ec1b..215348d5 100644 --- a/tests/auto/grpc/CMakeLists.txt +++ b/tests/auto/grpc/CMakeLists.txt @@ -8,7 +8,7 @@ endif() # Set the default message latency for the gRPC tests in milliseconds. add_compile_definitions(QT_GRPC_TEST_MESSAGE_LATENCY=${QT_INTERNAL_GRPC_TEST_MESSAGE_LATENCY_MSEC}) -if(QT_FEATURE_native_grpc) +if(TARGET WrapgRPC::WrapLibgRPC) add_subdirectory(shared) add_subdirectory(client) add_subdirectory(server)