diff --git a/src/tests/functional/plugin/conformance/subgraphs_dumper/CMakeLists.txt b/src/tests/functional/plugin/conformance/subgraphs_dumper/CMakeLists.txt index fbe206c3633349..3ab17f76aefbcf 100644 --- a/src/tests/functional/plugin/conformance/subgraphs_dumper/CMakeLists.txt +++ b/src/tests/functional/plugin/conformance/subgraphs_dumper/CMakeLists.txt @@ -11,6 +11,7 @@ list(APPEND LIBRARIES openvino::pugixml ) +# add subgraphs_dumpers tool addIeTargetTest( NAME ${TARGET_NAME} ROOT ${CMAKE_CURRENT_SOURCE_DIR}/src @@ -25,4 +26,23 @@ addIeTargetTest( ADD_CPPLINT ) +# add subgraphs_dumpers lib to get API +addIeTarget( + NAME "${TARGET_NAME}Util" + TYPE STATIC + ROOT "${CMAKE_CURRENT_SOURCE_DIR}/src" + INCLUDES + PUBLIC + ${CMAKE_CURRENT_SOURCE_DIR}/include + LINK_LIBRARIES + PUBLIC + ${LIBRARIES} + EXCLUDED_SOURCE_PATHS + ${OpenVINO_SOURCE_DIR}/src/tests/functional/plugin/conformance/subgraphs_dumper/src/main.cpp + ${OpenVINO_SOURCE_DIR}/src/tests/functional/plugin/conformance/subgraphs_dumper/include/gflag_config.hpp + DEPENDENCIES + ov_frontends + ADD_CPPLINT +) + ov_build_target_faster(${TARGET_NAME} UNITY) \ No newline at end of file diff --git a/src/tests/functional/plugin/conformance/subgraphs_dumper/tests/CMakeLists.txt b/src/tests/functional/plugin/conformance/subgraphs_dumper/tests/CMakeLists.txt index 325504ff9a7700..c9eced4c632b72 100644 --- a/src/tests/functional/plugin/conformance/subgraphs_dumper/tests/CMakeLists.txt +++ b/src/tests/functional/plugin/conformance/subgraphs_dumper/tests/CMakeLists.txt @@ -4,21 +4,18 @@ set(TARGET_NAME subgraphsDumperTests) +list(APPEND DEPENDENCIES subgraphsDumperUtil) + addIeTargetTest( NAME ${TARGET_NAME} ROOT ${CMAKE_CURRENT_SOURCE_DIR} - ADDITIONAL_SOURCE_DIRS - ${OpenVINO_SOURCE_DIR}/src/tests/functional/plugin/conformance/subgraphs_dumper/src - EXCLUDED_SOURCE_PATHS - ${OpenVINO_SOURCE_DIR}/src/tests/functional/plugin/conformance/subgraphs_dumper/src/main.cpp INCLUDES - ${OpenVINO_SOURCE_DIR}/src/tests/functional/plugin/conformance/subgraphs_dumper/include ${CMAKE_CURRENT_SOURCE_DIR}/ LINK_LIBRARIES PRIVATE - func_test_utils - openvino::runtime - openvino::pugixml + ${DEPENDENCIES} + DEPENDENCIES + ${DEPENDENCIES} ADD_CPPLINT )