* Try to improve gflags * Try to improve gflags: part 2 * Tried to use dependencies on system * Use nlohmann_jsonConfig from system * Enabled nlohmann_json from system * Improvements * handle system gflags in developer package * Simplifications * Simplify dependency management * Corrected package names * Fixed subgraphsDumper configure stage * Try to fix rhel8 * Try to fix macosx * Fixed VPUX build * Fixed aliasing issues * Suppress some wanrings * export gflags when build it * Fixed some LTO * Try to fix Mac * revert * use gflags as private dependency * Aligned targets in developer package * Fixed frontends tests build on U20 with LTO * PAssed * Don't use pkg_search_module(zlib ..) during cross-compilation * Removed unused variables * Fixed finding of zlib during cross-compilation
22 lines
706 B
CMake
22 lines
706 B
CMake
# Copyright (C) 2018-2022 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
set(TARGET_NAME "ie_samples_utils")
|
|
|
|
file(GLOB_RECURSE SOURCES "*.cpp" "*.hpp" "*.h")
|
|
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${SOURCES})
|
|
|
|
add_library(${TARGET_NAME} STATIC EXCLUDE_FROM_ALL ${SOURCES})
|
|
set_target_properties(${TARGET_NAME} PROPERTIES FOLDER "src")
|
|
|
|
target_include_directories(${TARGET_NAME}
|
|
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
|
|
|
find_package(OpenVINO REQUIRED COMPONENTS Runtime)
|
|
|
|
target_link_libraries(${TARGET_NAME} PUBLIC openvino::runtime PRIVATE gflags)
|
|
|
|
if(COMMAND add_clang_format_target)
|
|
add_clang_format_target(${TARGET_NAME}_clang FOR_TARGETS ${TARGET_NAME})
|
|
endif()
|