-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Details: - Publishing protopipe to open-source ### Tickets: - E-143100
- Loading branch information
1 parent
43df0b6
commit 56fe26f
Showing
59 changed files
with
6,327 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# | ||
# Copyright (C) 2023-2024 Intel Corporation. | ||
# SPDX-License-Identifier: Apache 2.0 | ||
# | ||
|
||
set(TARGET_NAME protopipe) | ||
|
||
if (NOT DEFINED PROJECT_NAME) | ||
cmake_minimum_required(VERSION 3.13 FATAL_ERROR) | ||
project(protopipe_standalone) | ||
include("cmake/standalone.cmake") | ||
return() | ||
endif() | ||
|
||
# | ||
# Dependencies | ||
# | ||
|
||
find_package(OpenCV QUIET COMPONENTS gapi) | ||
if(OpenCV_VERSION VERSION_LESS 4.9) | ||
message(STATUS "NPU ${TARGET_NAME} tool is disabled due to missing dependencies: gapi from OpenCV >= 4.9.") | ||
return() | ||
endif() | ||
|
||
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") | ||
endif() | ||
|
||
# | ||
# Define the target | ||
# | ||
|
||
set(PROTOPIPE_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src) | ||
|
||
ov_add_target(ADD_CPPLINT | ||
TYPE EXECUTABLE | ||
NAME ${TARGET_NAME} | ||
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) | ||
|
||
|
||
|
||
set_target_properties(${TARGET_NAME} PROPERTIES | ||
FOLDER ${CMAKE_CURRENT_SOURCE_DIR} | ||
CXX_STANDARD 17) | ||
|
||
# | ||
# Install | ||
# | ||
|
||
install(TARGETS ${TARGET_NAME} | ||
RUNTIME DESTINATION "tools/${TARGET_NAME}" | ||
COMPONENT ${NPU_INTERNAL_COMPONENT} | ||
${OV_CPACK_COMP_NPU_INTERNAL_EXCLUDE_ALL}) | ||
|
||
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/README.md") | ||
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/README.md" | ||
DESTINATION "tools/${TARGET_NAME}" | ||
COMPONENT ${NPU_INTERNAL_COMPONENT} | ||
${OV_CPACK_COMP_NPU_INTERNAL_EXCLUDE_ALL}) | ||
endif() |
Oops, something went wrong.