summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2024-04-11 11:47:44 +0200
committerAlexey Edelev <alexey.edelev@qt.io>2024-04-22 10:49:49 +0200
commit02b89bc091513dfbb2b91887583f691a80e73655 (patch)
tree42516226f2bde155e8f36adc82d2159ceaab0fed
parent4783ee0ae9fced32adf9a81788244688ab81dbe7 (diff)
Add the missing dependencies to qtprotobufgen qtgrpcgen tests
Tests require the code that is generated by protobuf/grpc targets that should be built before the test run. Add the missing dependencies to make the tests runnable as the standalone target. Pick-to: 6.7 Change-Id: I66f040a859842a893421dd6a55d77bbd71b53c95 Reviewed-by: Dennis Oberst <dennis.oberst@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-rw-r--r--tests/auto/grpcgen/CMakeLists.txt2
-rw-r--r--tests/auto/protobufgen/CMakeLists.txt2
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/grpcgen/CMakeLists.txt b/tests/auto/grpcgen/CMakeLists.txt
index 6497afe..12f88ca 100644
--- a/tests/auto/grpcgen/CMakeLists.txt
+++ b/tests/auto/grpcgen/CMakeLists.txt
@@ -55,6 +55,8 @@ qt_autogen_tools_initial_setup(tst_qtgrpcgen_protobuf_only)
target_link_libraries(tst_qtgrpcgen_client_grpc_only PRIVATE tst_qtgrpcgen_protobuf_only)
+add_dependencies(tst_qtgrpcgen tst_qtgrpcgen_client_grpc_only)
+
if(TARGET Qt6::Qml)
qt_internal_extend_target(tst_qtgrpcgen
DEFINES
diff --git a/tests/auto/protobufgen/CMakeLists.txt b/tests/auto/protobufgen/CMakeLists.txt
index 1fe629d..567c475 100644
--- a/tests/auto/protobufgen/CMakeLists.txt
+++ b/tests/auto/protobufgen/CMakeLists.txt
@@ -89,6 +89,8 @@ if(protoc_version VERSION_GREATER_EQUAL "3.12" AND protoc_version VERSION_LESS "
)
endif()
+add_dependencies(tst_qtprotobufgen tst_qtprotobufgen_gen tst_qtprotobufgen_custom_exports_gen)
+
if(TARGET Qt6::Qml)
qt_internal_extend_target(tst_qtprotobufgen
DEFINES