From: Ivan Vagin/AI Tools Lab /SRR/Engineer/삼성전자 Date: Wed, 15 May 2019 09:14:32 +0000 (+0300) Subject: [nnkit/moco/tf] Build moco_test_tf only when TensorFlow is found (#3465) X-Git-Tag: nncc_backup~594 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=daf026185aa9e569963f49562d8a178bd9315404;p=platform%2Fcore%2Fml%2Fnnfw.git [nnkit/moco/tf] Build moco_test_tf only when TensorFlow is found (#3465) Build moco_test_tf only when TensorFlow is found Signed-off-by: Ivan Vagin --- diff --git a/contrib/moco/test/tf/CMakeLists.txt b/contrib/moco/test/tf/CMakeLists.txt index 1dcc5c6..c0d72f4 100644 --- a/contrib/moco/test/tf/CMakeLists.txt +++ b/contrib/moco/test/tf/CMakeLists.txt @@ -57,6 +57,12 @@ foreach(PBTXTFILE IN ITEMS ${PBTXTFILES}) endforeach(PBTXTFILE) +nncc_find_package(TensorFlow QUIET) +if(NOT TensorFlow_FOUND) + message(STATUS "moco: Skip adding test as TensorFlow is not found") + return() +endif(NOT TensorFlow_FOUND) + # Run tests add_test(NAME moco_test_tf COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/runall"