* New approach to offline transformations * Include paths fix * Imports fix * offline_transformations target dependency simplification * MakeStatefulTransformation exposed to python * Python bindings build configuration fix * Test variable name refactor * Stop crying (snow)flake * Snake cased offline transformations API * Removal of old offline transformations from python * Imports adaptation to new code style * offline_transformations as a part of the common wheel * Cmake simplification and refactor * Correct transform invocation * CI fix * Proper dependency check in MO * _pyngraph as a dependency of MO in cmake * IR serialization fix in MO * POT adaptation to the new API * Revert "Removal of old offline transformations from python" This reverts commitf9a0551ead. * Merge of old& new bindings for offline_transformations * Revert "POT adaptation to the new API" This reverts commit499554e68c. * Obsolete cmake line removal * Missing comma and merge conflict fix * Offline transformations tests fix * IE imports removal from check_ie_bindings * Installation of opevino/__init__.py fix * Obsolete line removal * MO serialization switched to the new API * Revert of preliminary MO adaptation to the new API * Another magic spell that will hopefully make CI pass * Python api cmake dependencies reorg * Temporary solution for the CI/cpack errors * Installation fix and code formatting * ie_api & pyopenvino dependency removal * Explicit cpack configuration for the new API * cpack configuration adaptation * Revert of obsolete cpack changes Co-authored-by: Alexander Zhogov <alexander.zhogov@intel.com>
35 lines
1.1 KiB
CMake
35 lines
1.1 KiB
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")
|
|
|
|
if(NOT DEFINED OpenVINO_SOURCE_DIR)
|
|
find_package(InferenceEngineDeveloperPackage REQUIRED)
|
|
endif()
|
|
|
|
add_subdirectory(thirdparty/pybind11 EXCLUDE_FROM_ALL)
|
|
|
|
set(LIBRARY_OUTPUT_DIRECTORY_BIN ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
|
|
|
|
add_subdirectory(src)
|
|
|
|
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()
|
|
|
|
if(InferenceEngineDeveloperPackage_FOUND)
|
|
ie_cpack(${IE_CPACK_COMPONENTS_ALL})
|
|
endif()
|