ngraph_set(NGRAPH_ADDRESS_SANITIZER FALSE)
endif ()
ngraph_set(NGRAPH_PYTHON_BUILD_ENABLE FALSE)
- if (NOT ANDROID)
- if(ENABLE_TESTS)
- ngraph_set(NGRAPH_UNIT_TEST_ENABLE TRUE)
- ngraph_set(NGRAPH_IE_ENABLE TRUE)
- else()
- ngraph_set(NGRAPH_UNIT_TEST_ENABLE FALSE)
- ngraph_set(NGRAPH_IE_ENABLE FALSE)
- endif()
- ngraph_set(NGRAPH_ONNX_IMPORT_ENABLE TRUE)
+
+ if(ENABLE_TESTS AND NOT ANDROID)
+ ngraph_set(NGRAPH_UNIT_TEST_ENABLE TRUE)
+ ngraph_set(NGRAPH_IE_ENABLE TRUE)
else()
ngraph_set(NGRAPH_UNIT_TEST_ENABLE FALSE)
- ngraph_set(NGRAPH_TEST_UTIL_ENABLE FALSE)
ngraph_set(NGRAPH_IE_ENABLE FALSE)
+ endif()
+
+ if(NOT ANDROID)
+ ngraph_set(NGRAPH_ONNX_IMPORT_ENABLE TRUE)
+ else()
ngraph_set(NGRAPH_ONNX_IMPORT_ENABLE FALSE)
endif()
ngraph_set(NGRAPH_INTERPRETER_ENABLE TRUE)
set(ONNX_LIBRARIES onnx onnx_proto)
+add_subdirectory(runtime)
if(NOT NGRAPH_UNIT_TEST_ENABLE)
message(STATUS "unit tests disabled")
return()
endif()
-add_subdirectory(runtime)
-
message(STATUS "unit tests enabled")
if(LINUX)