Install rules for static libraries case (#8384)

* Proper cmake install for static libraries case

* Added an ability to skip template plugin

* Added install rules for VPU / GPU

* Install more libraries

* Fixed absolute TBB include paths

* Disable GNA

* Fixed issue with linker

* Some fixes

* Fixed linkage issues in tests

* Disabled some tests

* Updated CI pipelines

* Fixed Windows linkage

* Fixed custom_opset test for static casr

* Fixed CVS-70313

* Continue on error

* Fixed clanf-format

* Try to fix Windows linker

* Fixed compilation

* Disable samples

* Fixed samples build with THREADING=SEQ

* Fixed link error on Windows

* Fixed ieFuncTests

* Added static Azure CI

* Revert "Fixed link error on Windows"

This reverts commit 78cca36fd2.

* Merge static and dynamic linux pipelines

* Fixed Azure
This commit is contained in:
Ilya Lavrenov authored and GitHub committed 2021-11-10 18:25:51 +03:00
1 parent 91da09b1e5
commit 461f746430
60 files changed
+427 -273

No files matched your search

+5
View File
@@ -20,6 +20,7 @@ endif()
add_subdirectory(xbyak EXCLUDE_FROM_ALL)
openvino_developer_export_targets(COMPONENT openvino_common TARGETS xbyak)
ov_install_static_lib(xbyak openvino_common)
#
# Pugixml
@@ -35,6 +36,7 @@ else()
add_subdirectory(pugixml EXCLUDE_FROM_ALL)
set_property(TARGET pugixml-static PROPERTY EXPORT_NAME pugixml)
openvino_developer_export_targets(COMPONENT openvino_common TARGETS pugixml::static)
ov_install_static_lib(pugixml-static openvino_common)
endfunction()
ie_build_pugixml()
@@ -52,6 +54,9 @@ add_subdirectory(fluid/modules/gapi EXCLUDE_FROM_ALL)
set_target_properties(ade fluid PROPERTIES FOLDER thirdparty)
openvino_developer_export_targets(COMPONENT openvino_common TARGETS ade fluid)
ov_install_static_lib(ade openvino_common)
ov_install_static_lib(fluid openvino_common)
#
# Gflags
#
+6
View File
@@ -18,6 +18,12 @@ if(ENABLE_PROFILING_ITT)
target_compile_options(ittnotify PRIVATE -Wno-undef)
endif()
# override INTERFACE_INCLUDE_DIRECTORIES
set_property(TARGET ittnotify PROPERTY INTERFACE_INCLUDE_DIRECTORIES
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/ittapi/src/ittnotify>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/ittapi/include>)
openvino_developer_export_targets(COMPONENT openvino_common TARGETS ittnotify)
ov_install_static_lib(ittnotify openvino_common)
endif()
endif()
+10 -1
View File
@@ -43,10 +43,17 @@ set(CMAKE_C_FLAGS "")
set(CMAKE_CXX_FLAGS "")
set(CMAKE_C_FLAGS_RELEASE "")
set(CMAKE_CXX_FLAGS_RELEASE "")
# OpenCL has absolute paths to include directories
set(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION OFF)
add_subdirectory(icd_loader)
target_include_directories(OpenCL SYSTEM PUBLIC ${OPENCL_HEADERS_DIR})
# override INTERFACE_INCLUDE_DIRECTORIES
set_property(TARGET OpenCL PROPERTY INTERFACE_INCLUDE_DIRECTORIES
$<BUILD_INTERFACE:${OPENCL_ICD_LOADER_HEADERS_DIR}>)
foreach(dir IN LISTS OPENCL_HEADERS_DIR)
target_include_directories(OpenCL SYSTEM PUBLIC $<BUILD_INTERFACE:${dir}>)
endforeach()
# The following varables are needed to make find_package(OpenCL) work
set(OPENCL_VERSION_2_2 ON CACHE BOOL "" FORCE)
@@ -58,3 +65,5 @@ get_lib_path("${OUTPUT_ROOT}/${BIN_FOLDER}" OPENCL_LIB_DIR)
get_lib_name("OpenCL" OPENCL_LIB_NAME)
set(OpenCL_LIBRARY "${OPENCL_LIB_DIR}/${OPENCL_LIB_NAME}" CACHE PATH "" FORCE)
ov_install_static_lib(OpenCL gpu)