Skip to content

Commit

Permalink
Fix protopipe dependencies for Linux (openvinotoolkit#27249)
Browse files Browse the repository at this point in the history
### Details:
 - winmm is Windows only dependency

### Tickets:
 - E-144853
  • Loading branch information
Maxim-Doronin authored Oct 25, 2024
1 parent 899886e commit 00955e2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/plugins/intel_npu/tools/protopipe/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,19 @@ if(OpenCV_VERSION VERSION_LESS 4.9)
return()
endif()

set(DEPENDENCIES
Threads::Threads
gflags
yaml-cpp
openvino::runtime
opencv_gapi
)

if (WIN32)
# WA: add_tool_target expects to have all dependencies as cmake targets.
add_library(winmm INTERFACE)
target_link_libraries(winmm INTERFACE "winmm.lib")
list(APPEND DEPENDENCIES winmm)
endif()

#
Expand All @@ -40,16 +49,7 @@ ov_add_target(ADD_CPPLINT
ROOT ${CMAKE_CURRENT_SOURCE_DIR}
ADDITIONAL_SOURCE_DIRS ${PROTOPIPE_SOURCE_DIR}
INCLUDES ${PROTOPIPE_SOURCE_DIR}
LINK_LIBRARIES
PRIVATE
Threads::Threads
gflags
yaml-cpp
openvino::runtime
opencv_gapi
winmm)


LINK_LIBRARIES PRIVATE ${DEPENDENCIES})

set_target_properties(${TARGET_NAME} PROPERTIES
FOLDER ${CMAKE_CURRENT_SOURCE_DIR}
Expand Down

0 comments on commit 00955e2

Please sign in to comment.