diff --git a/.ci/azure/linux.yml b/.ci/azure/linux.yml index 2c20f894ba8..7d7454f8794 100644 --- a/.ci/azure/linux.yml +++ b/.ci/azure/linux.yml @@ -64,7 +64,7 @@ jobs: Static: CMAKE_BUILD_SHARED_LIBS: 'OFF' PYTHON_STATIC_ARGS: -m "not dynamic_library" - CMAKE_CPACK_GENERATOR: + CMAKE_CPACK_GENERATOR: "TGZ" SAMPLES_INSTALL_DIR: $(INSTALL_DIR)/samples PYTHON_SAMPLES_INSTALL_DIR: $(SAMPLES_INSTALL_DIR)/python RUN_PREFIX: . $(SETUPVARS) && diff --git a/CMakeLists.txt b/CMakeLists.txt index fad19139a1d..461f1a209cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,6 +44,7 @@ message (STATUS "CMAKE_VERSION ......................... " ${CMAKE_VERSION}) message (STATUS "OpenVINO_SOURCE_DIR ................... " ${OpenVINO_SOURCE_DIR}) message (STATUS "OpenVINO_BINARY_DIR ................... " ${OpenVINO_BINARY_DIR}) message (STATUS "CMAKE_GENERATOR ....................... " ${CMAKE_GENERATOR}) +message (STATUS "CPACK_GENERATOR ....................... " ${CPACK_GENERATOR}) message (STATUS "CMAKE_C_COMPILER_ID ................... " ${CMAKE_C_COMPILER_ID}) message (STATUS "CMAKE_CXX_COMPILER_ID ................. " ${CMAKE_CXX_COMPILER_ID}) if(OV_GENERATOR_MULTI_CONFIG) diff --git a/cmake/developer_package/packaging/archive.cmake b/cmake/developer_package/packaging/archive.cmake new file mode 100644 index 00000000000..7513a72f880 --- /dev/null +++ b/cmake/developer_package/packaging/archive.cmake @@ -0,0 +1,90 @@ +# Copyright (C) 2018-2023 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# + +include(GNUInstallDirs) + +# +# ov_archive_cpack_set_dirs() +# +# Set directories for ARCHIVE cpack +# +macro(ov_archive_cpack_set_dirs) + # common "archive" package locations + # TODO: move current variables to OpenVINO specific locations + set(OV_CPACK_INCLUDEDIR runtime/include) + set(OV_CPACK_IE_CMAKEDIR runtime/cmake) + set(OV_CPACK_NGRAPH_CMAKEDIR runtime/cmake) + set(OV_CPACK_OPENVINO_CMAKEDIR runtime/cmake) + set(OV_CPACK_DOCDIR docs) + set(OV_CPACK_LICENSESDIR licenses) + set(OV_CPACK_SAMPLESDIR samples) + set(OV_CPACK_WHEELSDIR tools) + set(OV_CPACK_TOOLSDIR tools) + set(OV_CPACK_DEVREQDIR tools) + set(OV_CPACK_PYTHONDIR python) + + if(WIN32) + set(OV_CPACK_LIBRARYDIR runtime/lib/${ARCH_FOLDER}/$) + set(OV_CPACK_RUNTIMEDIR runtime/bin/${ARCH_FOLDER}/$) + set(OV_CPACK_ARCHIVEDIR runtime/lib/${ARCH_FOLDER}/$) + set(OV_WHEEL_RUNTIMEDIR runtime/bin/${ARCH_FOLDER}/Release) + elseif(APPLE) + set(OV_CPACK_LIBRARYDIR runtime/lib/${ARCH_FOLDER}/$) + set(OV_CPACK_RUNTIMEDIR runtime/lib/${ARCH_FOLDER}/$) + set(OV_CPACK_ARCHIVEDIR runtime/lib/${ARCH_FOLDER}/$) + set(OV_WHEEL_RUNTIMEDIR runtime/lib/${ARCH_FOLDER}/Release) + else() + set(OV_CPACK_LIBRARYDIR runtime/lib/${ARCH_FOLDER}) + set(OV_CPACK_RUNTIMEDIR runtime/lib/${ARCH_FOLDER}) + set(OV_CPACK_ARCHIVEDIR runtime/lib/${ARCH_FOLDER}) + set(OV_WHEEL_RUNTIMEDIR ${OV_CPACK_RUNTIMEDIR}) + endif() + set(OV_CPACK_PLUGINSDIR ${OV_CPACK_RUNTIMEDIR}) + + # for BW compatibility + set(IE_CPACK_LIBRARY_PATH ${OV_CPACK_LIBRARYDIR}) + set(IE_CPACK_RUNTIME_PATH ${OV_CPACK_RUNTIMEDIR}) + set(IE_CPACK_ARCHIVE_PATH ${OV_CPACK_ARCHIVEDIR}) +endmacro() + +ov_archive_cpack_set_dirs() + +# +# Override include / exclude rules for components +# This is required to exclude some files from installation +# (e.g. archive packages don't require python_package component) +# + +macro(ov_define_component_include_rules) + # core components + unset(OV_CPACK_COMP_CORE_EXCLUDE_ALL) + unset(OV_CPACK_COMP_CORE_C_EXCLUDE_ALL) + unset(OV_CPACK_COMP_CORE_DEV_EXCLUDE_ALL) + unset(OV_CPACK_COMP_CORE_C_DEV_EXCLUDE_ALL) + # licensing + unset(OV_CPACK_COMP_LICENSING_EXCLUDE_ALL) + # samples + unset(OV_CPACK_COMP_CPP_SAMPLES_EXCLUDE_ALL) + unset(OV_CPACK_COMP_C_SAMPLES_EXCLUDE_ALL) + unset(OV_CPACK_COMP_PYTHON_SAMPLES_EXCLUDE_ALL) + # python + unset(OV_CPACK_COMP_PYTHON_OPENVINO_EXCLUDE_ALL) + unset(OV_CPACK_COMP_BENCHMARK_APP_EXCLUDE_ALL) + unset(OV_CPACK_COMP_OVC_EXCLUDE_ALL) + set(OV_CPACK_COMP_PYTHON_OPENVINO_PACKAGE_EXCLUDE_ALL EXCLUDE_FROM_ALL) + unset(OV_CPACK_COMP_PYTHON_WHEELS_EXCLUDE_ALL) + # tools + set(OV_CPACK_COMP_OPENVINO_DEV_REQ_FILES_EXCLUDE_ALL EXCLUDE_FROM_ALL) + unset(OV_CPACK_COMP_DEPLOYMENT_MANAGER_EXCLUDE_ALL) + # scripts + unset(OV_CPACK_COMP_INSTALL_DEPENDENCIES_EXCLUDE_ALL) + unset(OV_CPACK_COMP_SETUPVARS_EXCLUDE_ALL) +endmacro() + +ov_define_component_include_rules() + +# New in version 3.18 +set(CPACK_ARCHIVE_THREADS 8) +# multiple packages are generated +set(CPACK_ARCHIVE_COMPONENT_INSTALL ON) diff --git a/cmake/developer_package/packaging/nsis.cmake b/cmake/developer_package/packaging/nsis.cmake index 1a89f393440..f5393357d0a 100644 --- a/cmake/developer_package/packaging/nsis.cmake +++ b/cmake/developer_package/packaging/nsis.cmake @@ -43,6 +43,52 @@ endmacro() ov_nsis_specific_settings() +# +# ov_nsis_cpack_set_dirs() +# +# Set directories for ARCHIVE cpack +# +macro(ov_archive_cpack_set_dirs) + # common "archive" package locations + # TODO: move current variables to OpenVINO specific locations + set(OV_CPACK_INCLUDEDIR runtime/include) + set(OV_CPACK_IE_CMAKEDIR runtime/cmake) + set(OV_CPACK_NGRAPH_CMAKEDIR runtime/cmake) + set(OV_CPACK_OPENVINO_CMAKEDIR runtime/cmake) + set(OV_CPACK_DOCDIR docs) + set(OV_CPACK_LICENSESDIR licenses) + set(OV_CPACK_SAMPLESDIR samples) + set(OV_CPACK_WHEELSDIR tools) + set(OV_CPACK_TOOLSDIR tools) + set(OV_CPACK_DEVREQDIR tools) + set(OV_CPACK_PYTHONDIR python) + + if(WIN32) + set(OV_CPACK_LIBRARYDIR runtime/lib/${ARCH_FOLDER}/$) + set(OV_CPACK_RUNTIMEDIR runtime/bin/${ARCH_FOLDER}/$) + set(OV_CPACK_ARCHIVEDIR runtime/lib/${ARCH_FOLDER}/$) + set(OV_WHEEL_RUNTIMEDIR runtime/bin/${ARCH_FOLDER}/Release) + elseif(APPLE) + set(OV_CPACK_LIBRARYDIR runtime/lib/${ARCH_FOLDER}/$) + set(OV_CPACK_RUNTIMEDIR runtime/lib/${ARCH_FOLDER}/$) + set(OV_CPACK_ARCHIVEDIR runtime/lib/${ARCH_FOLDER}/$) + set(OV_WHEEL_RUNTIMEDIR runtime/lib/${ARCH_FOLDER}/Release) + else() + set(OV_CPACK_LIBRARYDIR runtime/lib/${ARCH_FOLDER}) + set(OV_CPACK_RUNTIMEDIR runtime/lib/${ARCH_FOLDER}) + set(OV_CPACK_ARCHIVEDIR runtime/lib/${ARCH_FOLDER}) + set(OV_WHEEL_RUNTIMEDIR ${OV_CPACK_RUNTIMEDIR}) + endif() + set(OV_CPACK_PLUGINSDIR ${OV_CPACK_RUNTIMEDIR}) + + # for BW compatibility + set(IE_CPACK_LIBRARY_PATH ${OV_CPACK_LIBRARYDIR}) + set(IE_CPACK_RUNTIME_PATH ${OV_CPACK_RUNTIMEDIR}) + set(IE_CPACK_ARCHIVE_PATH ${OV_CPACK_ARCHIVEDIR}) +endmacro() + +ov_nsis_cpack_set_dirs() + # # Override include / exclude rules for components # This is required to exclude some files from installation diff --git a/cmake/developer_package/packaging/packaging.cmake b/cmake/developer_package/packaging/packaging.cmake index e1d9b60f607..50a9d14e2e5 100644 --- a/cmake/developer_package/packaging/packaging.cmake +++ b/cmake/developer_package/packaging/packaging.cmake @@ -39,52 +39,6 @@ function(ov_get_pyversion pyversion) endif() endfunction() -# -# ov_cpack_set_dirs() -# -# Set directories for cpack -# -macro(ov_cpack_set_dirs) - # common IRC package locations - # TODO: move current variables to OpenVINO specific locations - set(OV_CPACK_INCLUDEDIR runtime/include) - set(OV_CPACK_IE_CMAKEDIR runtime/cmake) - set(OV_CPACK_NGRAPH_CMAKEDIR runtime/cmake) - set(OV_CPACK_OPENVINO_CMAKEDIR runtime/cmake) - set(OV_CPACK_DOCDIR docs) - set(OV_CPACK_LICENSESDIR licenses) - set(OV_CPACK_SAMPLESDIR samples) - set(OV_CPACK_WHEELSDIR tools) - set(OV_CPACK_TOOLSDIR tools) - set(OV_CPACK_DEVREQDIR tools) - set(OV_CPACK_PYTHONDIR python) - - if(WIN32) - set(OV_CPACK_LIBRARYDIR runtime/lib/${ARCH_FOLDER}/$) - set(OV_CPACK_RUNTIMEDIR runtime/bin/${ARCH_FOLDER}/$) - set(OV_CPACK_ARCHIVEDIR runtime/lib/${ARCH_FOLDER}/$) - set(OV_WHEEL_RUNTIMEDIR runtime/bin/${ARCH_FOLDER}/Release) - elseif(APPLE) - set(OV_CPACK_LIBRARYDIR runtime/lib/${ARCH_FOLDER}/$) - set(OV_CPACK_RUNTIMEDIR runtime/lib/${ARCH_FOLDER}/$) - set(OV_CPACK_ARCHIVEDIR runtime/lib/${ARCH_FOLDER}/$) - set(OV_WHEEL_RUNTIMEDIR runtime/lib/${ARCH_FOLDER}/Release) - else() - set(OV_CPACK_LIBRARYDIR runtime/lib/${ARCH_FOLDER}) - set(OV_CPACK_RUNTIMEDIR runtime/lib/${ARCH_FOLDER}) - set(OV_CPACK_ARCHIVEDIR runtime/lib/${ARCH_FOLDER}) - set(OV_WHEEL_RUNTIMEDIR ${OV_CPACK_RUNTIMEDIR}) - endif() - set(OV_CPACK_PLUGINSDIR ${OV_CPACK_RUNTIMEDIR}) - - # for BW compatibility - set(IE_CPACK_LIBRARY_PATH ${OV_CPACK_LIBRARYDIR}) - set(IE_CPACK_RUNTIME_PATH ${OV_CPACK_RUNTIMEDIR}) - set(IE_CPACK_ARCHIVE_PATH ${OV_CPACK_ARCHIVEDIR}) -endmacro() - -ov_cpack_set_dirs() - # # ov_cpack_add_component(NAME ...) # @@ -169,38 +123,15 @@ endmacro() ov_define_component_names() -# default components for case when CPACK_GENERATOR is not set (i.e. default open source user) -macro(ov_define_component_include_rules) - # core components - unset(OV_CPACK_COMP_CORE_EXCLUDE_ALL) - unset(OV_CPACK_COMP_CORE_C_EXCLUDE_ALL) - unset(OV_CPACK_COMP_CORE_DEV_EXCLUDE_ALL) - unset(OV_CPACK_COMP_CORE_C_DEV_EXCLUDE_ALL) - # licensing - unset(OV_CPACK_COMP_LICENSING_EXCLUDE_ALL) - # samples - unset(OV_CPACK_COMP_CPP_SAMPLES_EXCLUDE_ALL) - unset(OV_CPACK_COMP_C_SAMPLES_EXCLUDE_ALL) - unset(OV_CPACK_COMP_PYTHON_SAMPLES_EXCLUDE_ALL) - # python - unset(OV_CPACK_COMP_PYTHON_OPENVINO_EXCLUDE_ALL) - unset(OV_CPACK_COMP_BENCHMARK_APP_EXCLUDE_ALL) - unset(OV_CPACK_COMP_OVC_EXCLUDE_ALL) - set(OV_CPACK_COMP_PYTHON_OPENVINO_PACKAGE_EXCLUDE_ALL EXCLUDE_FROM_ALL) - unset(OV_CPACK_COMP_PYTHON_WHEELS_EXCLUDE_ALL) - # tools - set(OV_CPACK_COMP_OPENVINO_DEV_REQ_FILES_EXCLUDE_ALL EXCLUDE_FROM_ALL) - unset(OV_CPACK_COMP_DEPLOYMENT_MANAGER_EXCLUDE_ALL) - # scripts - unset(OV_CPACK_COMP_INSTALL_DEPENDENCIES_EXCLUDE_ALL) - unset(OV_CPACK_COMP_SETUPVARS_EXCLUDE_ALL) -endmacro() - -ov_define_component_include_rules() +if(NOT DEFINED CPACK_GENERATOR) + set(CPACK_GENERATOR "TGZ") +elseif(NOT CPACK_GENERATOR) + message(FATAL_ERROR "CPACK_GENERATOR cannot contain an empty value") +endif() # # Include generator specific configuration file: -# 1. Overrides directories set by ov__cpack_set_dirs() +# 1. Overrides directories set by ov__cpack_set_dirs() # This is requried, because different generator use different locations for installed files # 2. Merges some components using ov_override_component_names() # This is required, because different generators have different set of components @@ -230,12 +161,11 @@ elseif(CPACK_GENERATOR STREQUAL "NSIS") include(packaging/nsis) elseif(CPACK_GENERATOR MATCHES "^(CONDA-FORGE|BREW|CONAN|VCPKG)$") include(packaging/common-libraries) +elseif(CPACK_GENERATOR MATCHES "^(7Z|TBZ2|TGZ|TXZ|TZ|TZST|ZIP)$") + include(packaging/archive) endif() macro(ie_cpack) - if(NOT DEFINED CPACK_GENERATOR) - set(CPACK_GENERATOR "TGZ") - endif() set(CPACK_SOURCE_GENERATOR "") # not used set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "OpenVINO™ Toolkit") set(CPACK_COMPONENT_UNSPECIFIED_REQUIRED OFF) @@ -287,18 +217,10 @@ macro(ie_cpack) # include GENERATOR dedicated per-component configuration file # NOTE: private modules need to define ov_cpack_settings macro - # for custom packages configuration + # for custom packages configuration if(COMMAND ov_cpack_settings) ov_cpack_settings() endif() - # generator specific variables - if(CPACK_GENERATOR MATCHES "^(7Z|TBZ2|TGZ|TXZ|TZ|ZIP)$") - # New in version 3.18 - set(CPACK_ARCHIVE_THREADS 8) - # multiple packages are generated - set(CPACK_ARCHIVE_COMPONENT_INSTALL ON) - endif() - include(CPack) endmacro() diff --git a/cmake/packaging/archive.cmake b/cmake/packaging/archive.cmake new file mode 100644 index 00000000000..59bdc01eb04 --- /dev/null +++ b/cmake/packaging/archive.cmake @@ -0,0 +1,23 @@ +# Copyright (C) 2018-2023 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# + +# +# OpenVINO Core components including frontends, plugins, etc +# +macro(ov_cpack_settings) + # fill a list of components which are part of conda + set(cpack_components_all ${CPACK_COMPONENTS_ALL}) + unset(CPACK_COMPONENTS_ALL) + foreach(item IN LISTS cpack_components_all) + string(TOUPPER ${item} UPPER_COMP) + # filter out some components, which are not needed to be wrapped to conda-forge | brew | conan | vcpkg + if(NOT OV_CPACK_COMP_${UPPER_COMP}_EXCLUDE_ALL AND + # python_package is not needed in case of archives, because components like pyopenvino are used, as well as wheels + NOT item MATCHES "^${OV_CPACK_COMP_PYTHON_OPENVINO_PACKAGE}_python.*") + list(APPEND CPACK_COMPONENTS_ALL ${item}) + endif() + endforeach() + unset(cpack_components_all) + list(REMOVE_DUPLICATES CPACK_COMPONENTS_ALL) +endmacro() diff --git a/cmake/packaging/common-libraries.cmake b/cmake/packaging/common-libraries.cmake index 5d2f7bd79e9..9b96ed52860 100644 --- a/cmake/packaging/common-libraries.cmake +++ b/cmake/packaging/common-libraries.cmake @@ -13,6 +13,8 @@ macro(ov_cpack_settings) string(TOUPPER ${item} UPPER_COMP) # filter out some components, which are not needed to be wrapped to conda-forge | brew | conan | vcpkg if(NOT OV_CPACK_COMP_${UPPER_COMP}_EXCLUDE_ALL AND + # because in case of VCPKG | CONAN | BREW | CONDA-FORGE distributions, python is either not needed or installed separately + (NOT item MATCHES "^${OV_CPACK_COMP_PYTHON_OPENVINO_PACKAGE}_python.*" OR ENABLE_PYTHON_PACKAGING) AND # even for case of system TBB we have installation rules for wheels packages # so, need to skip this explicitly since they are installed in `host` section NOT item MATCHES "^tbb(_dev)?$" AND @@ -21,6 +23,7 @@ macro(ov_cpack_settings) list(APPEND CPACK_COMPONENTS_ALL ${item}) endif() endforeach() + unset(cpack_components_all) list(REMOVE_DUPLICATES CPACK_COMPONENTS_ALL) # override generator diff --git a/cmake/packaging/debian.cmake b/cmake/packaging/debian.cmake index 49a1ad9fe08..76620997734 100644 --- a/cmake/packaging/debian.cmake +++ b/cmake/packaging/debian.cmake @@ -47,7 +47,7 @@ macro(ov_cpack_settings) string(TOUPPER ${item} UPPER_COMP) # filter out some components, which are not needed to be wrapped to .deb package if(NOT OV_CPACK_COMP_${UPPER_COMP}_EXCLUDE_ALL AND - # skip OpenVINO Python API (pattern in form of "_python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}") + # skip OpenVINO Python API (pattern in form of "pyopenvino_python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}") NOT item MATCHES "^${OV_CPACK_COMP_PYTHON_OPENVINO}_python.*" AND # because in case of .deb package, pyopenvino_package_python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR} is installed (NOT item MATCHES "^${OV_CPACK_COMP_PYTHON_OPENVINO_PACKAGE}_python.*" OR ENABLE_PYTHON_PACKAGING) AND @@ -65,6 +65,7 @@ macro(ov_cpack_settings) list(APPEND CPACK_COMPONENTS_ALL ${item}) endif() endforeach() + unset(cpack_components_all) list(REMOVE_DUPLICATES CPACK_COMPONENTS_ALL) # version with 3 components diff --git a/cmake/packaging/nsis.cmake b/cmake/packaging/nsis.cmake index b6e809514ca..e5467ee5afe 100644 --- a/cmake/packaging/nsis.cmake +++ b/cmake/packaging/nsis.cmake @@ -15,6 +15,7 @@ macro(ov_cpack_settings) list(APPEND CPACK_COMPONENTS_ALL ${item}) endif() endforeach() + unset(cpack_components_all) # restore the components settings diff --git a/cmake/packaging/packaging.cmake b/cmake/packaging/packaging.cmake index a4e165d615d..7d685f43143 100644 --- a/cmake/packaging/packaging.cmake +++ b/cmake/packaging/packaging.cmake @@ -3,11 +3,13 @@ # if(CPACK_GENERATOR STREQUAL "DEB") - include(cmake/packaging/debian.cmake) + include("${OpenVINO_SOURCE_DIR}/cmake/packaging/debian.cmake") elseif(CPACK_GENERATOR STREQUAL "RPM") - include(cmake/packaging/rpm.cmake) + include("${OpenVINO_SOURCE_DIR}/cmake/packaging/rpm.cmake") elseif(CPACK_GENERATOR MATCHES "^(CONDA-FORGE|BREW|CONAN|VCPKG)$") - include(cmake/packaging/common-libraries.cmake) + include("${OpenVINO_SOURCE_DIR}/cmake/packaging/common-libraries.cmake") +elseif(CPACK_GENERATOR MATCHES "^(7Z|TBZ2|TGZ|TXZ|TZ|TZST|ZIP)$") + include("${OpenVINO_SOURCE_DIR}/cmake/packaging/archive.cmake") elseif(CPACK_GENERATOR STREQUAL "NSIS") - include(cmake/packaging/nsis.cmake) + include("${OpenVINO_SOURCE_DIR}/cmake/packaging/nsis.cmake") endif() diff --git a/cmake/packaging/rpm.cmake b/cmake/packaging/rpm.cmake index 24ce1b2cb06..d3dd22bcdbd 100644 --- a/cmake/packaging/rpm.cmake +++ b/cmake/packaging/rpm.cmake @@ -33,7 +33,7 @@ macro(ov_cpack_settings) string(TOUPPER ${item} UPPER_COMP) # filter out some components, which are not needed to be wrapped to .rpm package if(NOT OV_CPACK_COMP_${UPPER_COMP}_EXCLUDE_ALL AND - # skip OpenVINO Python API (pattern in form of "_python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}") + # skip OpenVINO Python API (pattern in form of "pyopenvino_python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}") NOT item MATCHES "^${OV_CPACK_COMP_PYTHON_OPENVINO}_python.*" AND # because in case of .rpm package, pyopenvino_package_python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR} is installed (NOT item MATCHES "^${OV_CPACK_COMP_PYTHON_OPENVINO_PACKAGE}_python.*" OR ENABLE_PYTHON_PACKAGING) AND @@ -51,6 +51,7 @@ macro(ov_cpack_settings) list(APPEND CPACK_COMPONENTS_ALL ${item}) endif() endforeach() + unset(cpack_components_all) list(REMOVE_DUPLICATES CPACK_COMPONENTS_ALL) # version with 3 components diff --git a/src/bindings/python/CMakeLists.txt b/src/bindings/python/CMakeLists.txt index facfb221831..2e41c7e7802 100644 --- a/src/bindings/python/CMakeLists.txt +++ b/src/bindings/python/CMakeLists.txt @@ -364,5 +364,8 @@ if(ENABLE_TESTS) endif() if(OpenVINODeveloperPackage_FOUND) + # provides a callback function to describe each component in repo + include("${OpenVINO_SOURCE_DIR}/cmake/packaging/packaging.cmake") + ie_cpack(${IE_CPACK_COMPONENTS_ALL}) endif()