From: 윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 Date: Tue, 7 May 2019 03:18:21 +0000 (+0900) Subject: [nnkit/moco/tf] Make cmake work only when Tensorflow is found (#3405) X-Git-Tag: nncc_backup~644 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b0f7314689070b7dc8ba8b2f3fe65a0ab9726923;p=platform%2Fcore%2Fml%2Fnnfw.git [nnkit/moco/tf] Make cmake work only when Tensorflow is found (#3405) This commits makes cmake builds nnkit/moco/tf only when TF is found Signed-off-by: Hyun Sik Yoon --- diff --git a/contrib/nnkit/libs/support/moco/CMakeLists.txt b/contrib/nnkit/libs/support/moco/CMakeLists.txt index fdb6abe..2b3c19c 100644 --- a/contrib/nnkit/libs/support/moco/CMakeLists.txt +++ b/contrib/nnkit/libs/support/moco/CMakeLists.txt @@ -1,4 +1,10 @@ # backend for moco TF +nncc_find_package(TensorFlow QUIET) + +if(NOT TensorFlow_FOUND) + return() +endif(NOT TensorFlow_FOUND) + file(GLOB_RECURSE TF_SOURCES "tf/src/*.cpp") add_library(nnkit_support_moco_tf STATIC ${TF_SOURCES})