Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[HETERO] Add CPU and GPU plugins to tests dependencies if exists (#28428)

Arseniy Obolenskiydc225cf7e78d
diff --git a/src/plugins/hetero/tests/functional/CMakeLists.txt b/src/plugins/hetero/tests/functional/CMakeLists.txt
index a915168b560..eaa18a9d254 100644
--- a/src/plugins/hetero/tests/functional/CMakeLists.txt
+++ b/src/plugins/hetero/tests/functional/CMakeLists.txt
@@ -23,6 +23,13 @@ ov_add_test_target(
OV HETERO
)
+if(ENABLE_INTEL_CPU)
+ add_dependencies(${TARGET_NAME} openvino_intel_cpu_plugin)
+endif()
+if(ENABLE_INTEL_GPU)
+ add_dependencies(${TARGET_NAME} openvino_intel_gpu_plugin)
+endif()
+
target_compile_definitions(${TARGET_NAME} PRIVATE CI_BUILD_NUMBER=\"mock_version\")
if(ENABLE_OV_IR_FRONTEND)