Skip to content

Commit

Permalink
[CONFORMANCE][CMAKE] Add SubgraphsDumper lib (openvinotoolkit#20053)
Browse files Browse the repository at this point in the history
  • Loading branch information
iefode authored Oct 4, 2023
1 parent 3d6fb85 commit d7be40b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ list(APPEND LIBRARIES
openvino::pugixml
)

# add subgraphs_dumpers tool
addIeTargetTest(
NAME ${TARGET_NAME}
ROOT ${CMAKE_CURRENT_SOURCE_DIR}/src
Expand All @@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down

0 comments on commit d7be40b

Please sign in to comment.