* Refactored developer package * Added fuzzing for CMAKE_MODULE_LINKER_FLAGS as well * Added options for developer package * More improvements * Further improvements * Removed global CMAKE_MODULE_PATH population * Fixes * Final fixes * Fixed python build * Fix for TBB * Fixed Find TBB * Fixed install * Fixes for OV features * Split developer targets per component * Fixed IE build tree config * Fixed ITT * Fixed review comments * Clean export dependencies * Fixed export of pugixml * Added IEDevScripts_DIR for Android * Fixed Android #2 * Fixed Android #3 * Fixed python cc * Disabled Core threading tests on GNA
59 lines
1.8 KiB
CMake
59 lines
1.8 KiB
CMake
# Copyright (C) 2018-2020 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
include(CPackComponent)
|
|
unset(IE_CPACK_COMPONENTS_ALL CACHE)
|
|
|
|
set(IE_CPACK_IE_DIR deployment_tools/inference_engine)
|
|
|
|
#
|
|
# ie_cpack_set_library_dir()
|
|
#
|
|
# Set library directory for cpack
|
|
#
|
|
function(ie_cpack_set_library_dir)
|
|
if(WIN32)
|
|
set(IE_CPACK_LIBRARY_PATH ${IE_CPACK_IE_DIR}/lib/${ARCH_FOLDER}/${CMAKE_BUILD_TYPE} PARENT_SCOPE)
|
|
set(IE_CPACK_RUNTIME_PATH ${IE_CPACK_IE_DIR}/bin/${ARCH_FOLDER}/${CMAKE_BUILD_TYPE} PARENT_SCOPE)
|
|
set(IE_CPACK_ARCHIVE_PATH ${IE_CPACK_IE_DIR}/lib/${ARCH_FOLDER}/${CMAKE_BUILD_TYPE} PARENT_SCOPE)
|
|
else()
|
|
set(IE_CPACK_LIBRARY_PATH ${IE_CPACK_IE_DIR}/lib/${ARCH_FOLDER} PARENT_SCOPE)
|
|
set(IE_CPACK_RUNTIME_PATH ${IE_CPACK_IE_DIR}/lib/${ARCH_FOLDER} PARENT_SCOPE)
|
|
set(IE_CPACK_ARCHIVE_PATH ${IE_CPACK_IE_DIR}/lib/${ARCH_FOLDER} PARENT_SCOPE)
|
|
endif()
|
|
endfunction()
|
|
|
|
ie_cpack_set_library_dir()
|
|
|
|
#
|
|
# ie_cpack_add_component(NAME ...)
|
|
#
|
|
# Wraps original `cpack_add_component` and adds component to internal IE list
|
|
#
|
|
macro(ie_cpack_add_component NAME)
|
|
list(APPEND IE_CPACK_COMPONENTS_ALL ${NAME})
|
|
set(IE_CPACK_COMPONENTS_ALL "${IE_CPACK_COMPONENTS_ALL}" CACHE STRING "" FORCE)
|
|
cpack_add_component(${NAME} ${ARGN})
|
|
endmacro()
|
|
|
|
macro(ie_cpack)
|
|
set(CPACK_GENERATOR "TGZ")
|
|
string(REPLACE "/" "_" CPACK_PACKAGE_VERSION "${CI_BUILD_NUMBER}")
|
|
if(WIN32)
|
|
set(CPACK_PACKAGE_NAME inference-engine_${CMAKE_BUILD_TYPE})
|
|
else()
|
|
set(CPACK_PACKAGE_NAME inference-engine)
|
|
endif()
|
|
set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY OFF)
|
|
set(CPACK_ARCHIVE_COMPONENT_INSTALL ON)
|
|
set(CPACK_PACKAGE_VENDOR "Intel")
|
|
set(CPACK_COMPONENTS_ALL ${ARGN})
|
|
set(CPACK_STRIP_FILES ON)
|
|
|
|
if(OS_FOLDER)
|
|
set(CPACK_SYSTEM_NAME "${OS_FOLDER}")
|
|
endif()
|
|
|
|
include(CPack)
|
|
endmacro()
|