* Fixed compilation with Intel compiler * Fixed template containers for VPU * Fixe one-dnn * Updated submodule
48 lines
1.3 KiB
CMake
48 lines
1.3 KiB
CMake
# Copyright (C) 2018-2021 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
function(add_perfcheck_target TARGET_NAME PLUGIN_NAME)
|
|
file(GLOB SOURCES *.cpp)
|
|
|
|
add_executable(${TARGET_NAME} ${SOURCES})
|
|
|
|
# TODO: enable some day and fix all warnings
|
|
# if(CMAKE_COMPILER_IS_GNUCXX)
|
|
# target_compile_options(${TARGET_NAME}
|
|
# PRIVATE
|
|
# "-Wall")
|
|
# endif()
|
|
|
|
target_include_directories(${TARGET_NAME}
|
|
SYSTEM PRIVATE
|
|
$<TARGET_PROPERTY:vpu_graph_transformer,INTERFACE_INCLUDE_DIRECTORIES>)
|
|
|
|
target_link_libraries(${TARGET_NAME}
|
|
PRIVATE
|
|
inference_engine
|
|
inference_engine_plugin_api
|
|
format_reader
|
|
Threads::Threads
|
|
ie_samples_utils)
|
|
|
|
add_dependencies(${TARGET_NAME}
|
|
${PLUGIN_NAME} ${ARGN})
|
|
|
|
set_target_properties(${TARGET_NAME} PROPERTIES
|
|
COMPILE_PDB_NAME ${TARGET_NAME}
|
|
FOLDER tools)
|
|
|
|
add_cpplint_target(${TARGET_NAME}_cpplint FOR_TARGETS ${TARGET_NAME})
|
|
endfunction()
|
|
|
|
if(ENABLE_MYRIAD)
|
|
add_perfcheck_target(myriad_perfcheck myriadPlugin)
|
|
|
|
ie_cpack_add_component(myriad_tools DEPENDS myriad)
|
|
|
|
install(TARGETS myriad_perfcheck
|
|
RUNTIME DESTINATION ${IE_CPACK_RUNTIME_PATH}
|
|
COMPONENT myriad_tools)
|
|
endif()
|