* Updated copyright headers
* Revert "Fixed linker warnings in docs snippets on Windows (#15119)"
This reverts commit 372699ec49.
19 lines
571 B
CMake
19 lines
571 B
CMake
# Copyright (C) 2018-2023 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
# Search OpenVINO Runtime installed
|
|
find_package(PkgConfig QUIET)
|
|
# TODO: fix cross-compilation later
|
|
if(PkgConfig_FOUND AND NOT CMAKE_CROSSCOMPILING AND CMAKE_BUILD_TYPE STREQUAL "Release")
|
|
pkg_search_module(openvino REQUIRED
|
|
IMPORTED_TARGET
|
|
openvino)
|
|
set(ov_link_libraries PkgConfig::openvino)
|
|
else()
|
|
find_package(OpenVINO REQUIRED COMPONENTS Runtime)
|
|
set(ov_link_libraries openvino::runtime)
|
|
endif()
|
|
|
|
add_subdirectory(src)
|