* Added OpenVINOConfig.cmake * OpenVINOConfig.cmake part 2 * Trying to fix cmake generation * Fixes * Export frontends as well * Fixed condition * Added OpenVINO cmake package usage: docs, C samples * Use more OpenVINO config * Install OpenVINOConfig.cmake * Trying to fix private plugins * Trying to fix .tox * Trying to fix ARM * Fixed samples build * Explicit ngraph duplicated targets * Fixed fuzzing tests build * Added IR frontend installation * Removed install directory for IE reader * Removed IR frontend from export list * Reverted ngraph_DIR * Try to fix .tox * Fixed ieFuncTests with ONNX extensions * Attempt #2 * Trying to fix ngraph setup.py * Fix * Trying to fix ONNX ngraph .tox CI * Trying to remove spaces * Fixed ngraph_DIR -> OpenVINO_DIR * Removed junk files * Try to fix ngraph wheel * Try to fix ie_wheel * Try to fix ngraph wheel
26 lines
947 B
CMake
26 lines
947 B
CMake
# Copyright (C) 2021 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
cmake_minimum_required (VERSION 3.13)
|
|
|
|
project(OpenVINOPython DESCRIPTION "OpenVINO Runtime Python bindings")
|
|
|
|
set(LIBRARY_OUTPUT_DIRECTORY_BIN ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
|
|
|
|
add_subdirectory(thirdparty/pybind11 EXCLUDE_FROM_ALL)
|
|
add_subdirectory(src/compatibility)
|
|
|
|
if(NGRAPH_UNIT_TEST_ENABLE)
|
|
add_subdirectory(tests/mock/mock_py_ngraph_frontend)
|
|
add_dependencies(_pyngraph mock_py_ngraph_frontend)
|
|
set_target_properties(mock_py_ngraph_frontend PROPERTIES
|
|
LIBRARY_OUTPUT_DIRECTORY ${LIBRARY_OUTPUT_DIRECTORY_BIN}
|
|
ARCHIVE_OUTPUT_DIRECTORY ${LIBRARY_OUTPUT_DIRECTORY_BIN}
|
|
COMPILE_PDB_OUTPUT_DIRECTORY ${LIBRARY_OUTPUT_DIRECTORY_BIN}
|
|
PDB_OUTPUT_DIRECTORY ${LIBRARY_OUTPUT_DIRECTORY_BIN})
|
|
|
|
add_subdirectory(tests/mock/pyngraph_fe_mock_api)
|
|
add_dependencies(_pyngraph pybind_mock_frontend)
|
|
endif()
|