|
| 1 | +diff --git a/inference-engine/CMakeLists.txt b/inference-engine/CMakeLists.txt |
| 2 | +index 7f45ab02..a7bac7e9 100644 |
| 3 | +--- a/inference-engine/CMakeLists.txt |
| 4 | ++++ b/inference-engine/CMakeLists.txt |
| 5 | +@@ -70,7 +70,7 @@ if(ENABLE_TESTS) |
| 6 | + add_subdirectory(tests) |
| 7 | + endif() |
| 8 | + |
| 9 | +-add_subdirectory(tools) |
| 10 | ++#add_subdirectory(tools) |
| 11 | + |
| 12 | + function(ie_build_samples) |
| 13 | + # samples should be build with the same flags as from OpenVINO package, |
| 14 | +@@ -89,7 +89,7 @@ endfunction() |
| 15 | + |
| 16 | + # gflags and format_reader targets are kept inside of samples directory and |
| 17 | + # they must be built even if samples build is disabled (required for tests and tools). |
| 18 | +-ie_build_samples() |
| 19 | ++#ie_build_samples() |
| 20 | + |
| 21 | + file(GLOB_RECURSE SAMPLES_SOURCES samples/*.cpp samples/*.hpp samples/*.h) |
| 22 | + add_cpplint_target(sample_cpplint |
| 23 | +@@ -180,7 +180,7 @@ endif() |
| 24 | + # Developer package |
| 25 | + # |
| 26 | + |
| 27 | +-ie_developer_export_targets(format_reader) |
| 28 | ++#ie_developer_export_targets(format_reader) |
| 29 | + ie_developer_export_targets(${NGRAPH_LIBRARIES}) |
| 30 | + |
| 31 | + # for Template plugin |
| 32 | +@@ -188,7 +188,7 @@ if(NGRAPH_INTERPRETER_ENABLE) |
| 33 | + ie_developer_export_targets(ngraph_backend interpreter_backend) |
| 34 | + endif() |
| 35 | + |
| 36 | +-ie_developer_export() |
| 37 | ++#ie_developer_export() |
| 38 | + |
| 39 | + configure_file( |
| 40 | + "${IE_MAIN_SOURCE_DIR}/cmake/developer_package_config.cmake.in" |
| 41 | +diff --git a/inference-engine/src/inference_engine/CMakeLists.txt b/inference-engine/src/inference_engine/CMakeLists.txt |
| 42 | +index 9ab88898..8badb591 100644 |
| 43 | +--- a/inference-engine/src/inference_engine/CMakeLists.txt |
| 44 | ++++ b/inference-engine/src/inference_engine/CMakeLists.txt |
| 45 | +@@ -118,7 +118,7 @@ add_cpplint_target(${TARGET_NAME}_plugin_api_cpplint FOR_SOURCES ${plugin_api_sr |
| 46 | + |
| 47 | + # Create common base object library |
| 48 | + |
| 49 | +-add_library(${TARGET_NAME}_common_obj OBJECT |
| 50 | ++add_library(${TARGET_NAME}_common_obj OBJECT EXCLUDE_FROM_ALL |
| 51 | + ${IE_BASE_SOURCE_FILES}) |
| 52 | + |
| 53 | + target_compile_definitions(${TARGET_NAME}_common_obj PRIVATE IMPLEMENT_INFERENCE_ENGINE_API) |
| 54 | +@@ -132,7 +132,7 @@ target_include_directories(${TARGET_NAME}_common_obj SYSTEM PRIVATE |
| 55 | + |
| 56 | + # Create object library |
| 57 | + |
| 58 | +-add_library(${TARGET_NAME}_obj OBJECT |
| 59 | ++add_library(${TARGET_NAME}_obj OBJECT EXCLUDE_FROM_ALL |
| 60 | + ${LIBRARY_SRC} |
| 61 | + ${LIBRARY_HEADERS} |
| 62 | + ${PUBLIC_HEADERS}) |
| 63 | +@@ -183,7 +183,7 @@ ie_register_plugins(MAIN_TARGET ${TARGET_NAME} |
| 64 | + |
| 65 | + # Static library used for unit tests which are always built |
| 66 | + |
| 67 | +-add_library(${TARGET_NAME}_s STATIC |
| 68 | ++add_library(${TARGET_NAME}_s STATIC EXCLUDE_FROM_ALL |
| 69 | + $<TARGET_OBJECTS:${TARGET_NAME}_obj> |
| 70 | + $<TARGET_OBJECTS:${TARGET_NAME}_common_obj> |
| 71 | + $<TARGET_OBJECTS:${TARGET_NAME}_legacy_obj> |
| 72 | +diff --git a/inference-engine/src/legacy_api/CMakeLists.txt b/inference-engine/src/legacy_api/CMakeLists.txt |
| 73 | +index ed87a073..b30e6671 100644 |
| 74 | +--- a/inference-engine/src/legacy_api/CMakeLists.txt |
| 75 | ++++ b/inference-engine/src/legacy_api/CMakeLists.txt |
| 76 | +@@ -26,7 +26,7 @@ endif() |
| 77 | + |
| 78 | + # Create object library |
| 79 | + |
| 80 | +-add_library(${TARGET_NAME}_obj OBJECT |
| 81 | ++add_library(${TARGET_NAME}_obj OBJECT EXCLUDE_FROM_ALL |
| 82 | + ${LIBRARY_SRC} |
| 83 | + ${PUBLIC_HEADERS}) |
| 84 | + |
| 85 | +diff --git a/inference-engine/src/mkldnn_plugin/CMakeLists.txt b/inference-engine/src/mkldnn_plugin/CMakeLists.txt |
| 86 | +index 166818cd..6c1e8e36 100644 |
| 87 | +--- a/inference-engine/src/mkldnn_plugin/CMakeLists.txt |
| 88 | ++++ b/inference-engine/src/mkldnn_plugin/CMakeLists.txt |
| 89 | +@@ -193,7 +193,7 @@ cross_compiled_file(${TARGET_NAME} |
| 90 | + |
| 91 | + # add test object library |
| 92 | + |
| 93 | +-add_library(${TARGET_NAME}_obj OBJECT ${SOURCES} ${HEADERS}) |
| 94 | ++add_library(${TARGET_NAME}_obj OBJECT EXCLUDE_FROM_ALL ${SOURCES} ${HEADERS}) |
| 95 | + |
| 96 | + target_include_directories(${TARGET_NAME}_obj PRIVATE $<TARGET_PROPERTY:inference_engine_preproc_s,INTERFACE_INCLUDE_DIRECTORIES> |
| 97 | + $<TARGET_PROPERTY:inference_engine_lp_transformations,INTERFACE_INCLUDE_DIRECTORIES> |
| 98 | +diff --git a/inference-engine/src/preprocessing/CMakeLists.txt b/inference-engine/src/preprocessing/CMakeLists.txt |
| 99 | +index f4fed72a..9cedd6b5 100644 |
| 100 | +--- a/inference-engine/src/preprocessing/CMakeLists.txt |
| 101 | ++++ b/inference-engine/src/preprocessing/CMakeLists.txt |
| 102 | +@@ -124,7 +124,7 @@ endif() |
| 103 | + |
| 104 | + # Create object library |
| 105 | + |
| 106 | +-add_library(${TARGET_NAME}_obj OBJECT |
| 107 | ++add_library(${TARGET_NAME}_obj OBJECT EXCLUDE_FROM_ALL |
| 108 | + ${LIBRARY_SRC} |
| 109 | + ${LIBRARY_HEADERS}) |
| 110 | + |
| 111 | +@@ -175,7 +175,7 @@ add_cpplint_target(${TARGET_NAME}_cpplint FOR_TARGETS ${TARGET_NAME} |
| 112 | + |
| 113 | + # Static library used for unit tests which are always built |
| 114 | + |
| 115 | +-add_library(${TARGET_NAME}_s STATIC |
| 116 | ++add_library(${TARGET_NAME}_s STATIC EXCLUDE_FROM_ALL |
| 117 | + $<TARGET_OBJECTS:${TARGET_NAME}_obj>) |
| 118 | + |
| 119 | + set_ie_threading_interface_for(${TARGET_NAME}_s) |
| 120 | +diff --git a/inference-engine/src/vpu/common/CMakeLists.txt b/inference-engine/src/vpu/common/CMakeLists.txt |
| 121 | +index b291d5b4..74ab8287 100644 |
| 122 | +--- a/inference-engine/src/vpu/common/CMakeLists.txt |
| 123 | ++++ b/inference-engine/src/vpu/common/CMakeLists.txt |
| 124 | +@@ -57,7 +57,7 @@ add_common_target("vpu_common_lib" FALSE) |
| 125 | + |
| 126 | + # Unit tests support for graph transformer |
| 127 | + if(WIN32) |
| 128 | +- add_common_target("vpu_common_lib_test_static" TRUE) |
| 129 | ++ #add_common_target("vpu_common_lib_test_static" TRUE) |
| 130 | + else() |
| 131 | + add_library("vpu_common_lib_test_static" ALIAS "vpu_common_lib") |
| 132 | + endif() |
| 133 | +diff --git a/inference-engine/src/vpu/graph_transformer/CMakeLists.txt b/inference-engine/src/vpu/graph_transformer/CMakeLists.txt |
| 134 | +index a4543745..807b8e36 100644 |
| 135 | +--- a/inference-engine/src/vpu/graph_transformer/CMakeLists.txt |
| 136 | ++++ b/inference-engine/src/vpu/graph_transformer/CMakeLists.txt |
| 137 | +@@ -65,7 +65,7 @@ add_graph_transformer_target("vpu_graph_transformer" FALSE) |
| 138 | + |
| 139 | + # Unit tests support for graph transformer |
| 140 | + if(WIN32) |
| 141 | +- add_graph_transformer_target("vpu_graph_transformer_test_static" TRUE) |
| 142 | ++ #add_graph_transformer_target("vpu_graph_transformer_test_static" TRUE) |
| 143 | + else() |
| 144 | + add_library("vpu_graph_transformer_test_static" ALIAS "vpu_graph_transformer") |
| 145 | + endif() |
| 146 | +diff --git a/inference-engine/thirdparty/CMakeLists.txt b/inference-engine/thirdparty/CMakeLists.txt |
| 147 | +index a2550bfa..10ce316f 100644 |
| 148 | +--- a/inference-engine/thirdparty/CMakeLists.txt |
| 149 | ++++ b/inference-engine/thirdparty/CMakeLists.txt |
| 150 | +@@ -56,13 +56,13 @@ function(build_with_lto) |
| 151 | + endfunction() |
| 152 | + |
| 153 | + ie_build_pugixml() |
| 154 | +- add_subdirectory(stb_lib) |
| 155 | ++ #add_subdirectory(stb_lib) |
| 156 | + add_subdirectory(ade) |
| 157 | + add_subdirectory(fluid/modules/gapi) |
| 158 | + |
| 159 | + target_include_directories(pugixml INTERFACE "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/pugixml/src>") |
| 160 | + |
| 161 | +- set_target_properties(pugixml ade fluid stb_image |
| 162 | ++ set_target_properties(pugixml ade fluid |
| 163 | + PROPERTIES FOLDER thirdparty) |
| 164 | + |
| 165 | + # developer package |
| 166 | +diff --git a/inference-engine/thirdparty/pugixml/CMakeLists.txt b/inference-engine/thirdparty/pugixml/CMakeLists.txt |
| 167 | +index 8bcb2801..380fb468 100644 |
| 168 | +--- a/inference-engine/thirdparty/pugixml/CMakeLists.txt |
| 169 | ++++ b/inference-engine/thirdparty/pugixml/CMakeLists.txt |
| 170 | +@@ -41,7 +41,7 @@ if(BUILD_SHARED_LIBS) |
| 171 | + else() |
| 172 | + add_library(pugixml STATIC ${SOURCES}) |
| 173 | + if (MSVC) |
| 174 | +- add_library(pugixml_mt STATIC ${SOURCES}) |
| 175 | ++ #add_library(pugixml_mt STATIC ${SOURCES}) |
| 176 | + #if (WIN32) |
| 177 | + # set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT") |
| 178 | + # set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd") |
0 commit comments