From c6c0d6d6cb7952da523613cfe0e2ff7a05320e1f Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=98=A4=ED=98=95=EC=84=9D/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Staff=20Engineer/=EC=82=BC=EC=84=B1?= =?utf8?q?=EC=A0=84=EC=9E=90?= Date: Tue, 24 Jul 2018 15:11:21 +0900 Subject: [PATCH] Define build option for nnapi_quickcheck (#2067) Define build option for nnapi_quickcheck Set default value as off (not build nnapi_quickcheck) To build nnapi_quickcheck, set OPTIONS="-DBUILD_NNAPI_QUICKCHECK=on" Signed-off-by: Hyeongseok Oh --- cmake/CfgOptionFlags.cmake | 1 + tools/nnapi_quickcheck/CMakeLists.txt | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/cmake/CfgOptionFlags.cmake b/cmake/CfgOptionFlags.cmake index cef9440..fa2f700 100644 --- a/cmake/CfgOptionFlags.cmake +++ b/cmake/CfgOptionFlags.cmake @@ -9,6 +9,7 @@ option(BUILD_NEURUN "Build neurun" OFF) #if implementation is done, it would rep option(BUILD_LABS "Build lab projects" ON) option(BUILD_ANDROID_NN_RUNTIME_TEST "Build Android NN Runtime Test" ON) option(BUILD_DETECTION_APP "Build detection example app" OFF) +option(BUILD_NNAPI_QUICKCHECK "Build NN API Quickcheck tools" OFF) if("${TARGET_ARCH}" STREQUAL "armv7l" AND NOT "${TARGET_OS}" STREQUAL "tizen") set(BUILD_PURE_ARM_COMPUTE ON) diff --git a/tools/nnapi_quickcheck/CMakeLists.txt b/tools/nnapi_quickcheck/CMakeLists.txt index efaa36a..96e84a7 100644 --- a/tools/nnapi_quickcheck/CMakeLists.txt +++ b/tools/nnapi_quickcheck/CMakeLists.txt @@ -1,3 +1,7 @@ +if(NOT BUILD_NNAPI_QUICKCHECK) + return() +endif(NOT BUILD_NNAPI_QUICKCHECK) + file(GLOB_RECURSE NNAPI_QUICKCHECK_LIB_SOURCES "lib/*.cpp") file(GLOB_RECURSE NNAPI_QUICKCHECK_LIB_TESTS "lib/*.test.cpp") list(REMOVE_ITEM NNAPI_QUICKCHECK_LIB_SOURCES ${NNAPI_QUICKCHECK_LIB_TESTS}) -- 2.7.4