| From cdca2987541990d894283b763fb5cf1db47c5896 Mon Sep 17 00:00:00 2001 |
| From: Anisha Kulkarni |
| <anisha.dattatraya.kulkarni@intel.corp-partner.google.com> |
| Date: Thu, 18 Mar 2021 09:56:30 -0700 |
| Subject: [PATCH] Disable samples |
| |
| --- |
| inference-engine/CMakeLists.txt | 35 +++++++++++++++++++++++---------- |
| 1 file changed, 25 insertions(+), 10 deletions(-) |
| |
| diff --git a/inference-engine/CMakeLists.txt b/inference-engine/CMakeLists.txt |
| index f9758d52b..1bcae1891 100644 |
| --- a/inference-engine/CMakeLists.txt |
| +++ b/inference-engine/CMakeLists.txt |
| @@ -59,17 +59,20 @@ if(ENABLE_TESTS) |
| add_subdirectory(tests) |
| endif() |
| |
| -add_subdirectory(tools) |
| +#add_subdirectory(tools) |
| |
| # gflags and format_reader targets are kept inside of samples directory and |
| # they must be built even if samples build is disabled (required for tests and tools). |
| -add_subdirectory(samples) |
| - |
| -file(GLOB_RECURSE SAMPLES_SOURCES samples/*.cpp samples/*.hpp samples/*.h) |
| -add_cpplint_target(sample_cpplint |
| - FOR_SOURCES ${SAMPLES_SOURCES} |
| - EXCLUDE_PATTERNS "thirdparty/*" "pugixml/*") |
| +if (${TARGET_OS} STREQUAL "CHROMEOS") |
| + message(STATUS "Skipping samples") |
| +else() |
| + add_subdirectory(samples) |
| |
| + file(GLOB_RECURSE SAMPLES_SOURCES samples/*.cpp samples/*.hpp samples/*.h) |
| + add_cpplint_target(sample_cpplint |
| + FOR_SOURCES ${SAMPLES_SOURCES} |
| + EXCLUDE_PATTERNS "thirdparty/*" "pugixml/*") |
| +endif() |
| if (ENABLE_PYTHON) |
| add_subdirectory(ie_bridges/python) |
| endif() |
| @@ -82,7 +85,11 @@ add_cpplint_report_target() |
| |
| # install C++ samples |
| |
| -ie_cpack_add_component(cpp_samples REQUIRED DEPENDS core) |
| +if (${TARGET_OS} STREQUAL "CHROMEOS") |
| + message(STATUS "Skipping cpp_samples") |
| +else() |
| + ie_cpack_add_component(cpp_samples REQUIRED DEPENDS core) |
| +endif() |
| |
| if(UNIX) |
| if (${TARGET_OS} STREQUAL "CHROMEOS") |
| @@ -104,7 +111,11 @@ endif() |
| |
| # install C samples |
| |
| -ie_cpack_add_component(c_samples REQUIRED DEPENDS core) |
| +if (${TARGET_OS} STREQUAL "CHROMEOS") |
| + message(STATUS "Skipping c_samples") |
| +else() |
| + ie_cpack_add_component(c_samples REQUIRED DEPENDS core) |
| +endif() |
| |
| if(UNIX) |
| if (${TARGET_OS} STREQUAL "CHROMEOS") |
| @@ -149,7 +160,11 @@ endif() |
| add_custom_target(ie_dev_targets ALL DEPENDS inference_engine HeteroPlugin) |
| |
| # Developer package |
| -ie_developer_export_targets(format_reader) |
| +if (${TARGET_OS} STREQUAL "CHROMEOS") |
| + message(STATUS "Skipping format reader") |
| +else() |
| + ie_developer_export_targets(format_reader) |
| +endif() |
| |
| if (ENABLE_NGRAPH) |
| ie_developer_export_targets(${NGRAPH_LIBRARIES}) |
| -- |
| 2.17.1 |
| |