From: 박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 Date: Thu, 11 Apr 2019 04:12:58 +0000 (+0900) Subject: [moco] Change cmake to use ENABLE_TEST for test (#3222) X-Git-Tag: nncc_backup~762 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=832f67dcf9d86161b090c588ab1ff248a812e456;p=platform%2Fcore%2Fml%2Fnnfw.git [moco] Change cmake to use ENABLE_TEST for test (#3222) This will change cmake to use ENABLE_TEST flag to build test Signed-off-by: SaeHie Park --- diff --git a/contrib/moco/lib/frontend/tf/CMakeLists.txt b/contrib/moco/lib/frontend/tf/CMakeLists.txt index 76b3cdc..73b6cd1 100644 --- a/contrib/moco/lib/frontend/tf/CMakeLists.txt +++ b/contrib/moco/lib/frontend/tf/CMakeLists.txt @@ -24,11 +24,11 @@ target_link_libraries(moco_tf_frontend PUBLIC loco) target_link_libraries(moco_tf_frontend PRIVATE stdex) target_link_libraries(moco_tf_frontend PRIVATE cwrap) -nncc_find_package(GTest QUIET) - -if(NOT GTest_FOUND) +if(NOT ENABLE_TEST) return() -endif(NOT GTest_FOUND) +endif(NOT ENABLE_TEST) + +nncc_find_package(GTest REQUIRED) add_executable(moco_tf_frontend_test ${TESTS}) target_include_directories(moco_tf_frontend_test PRIVATE src)