This commit introduces BUILD_TOOLS option and partially removes the
the occurence of OBS_BUILD in CMakeLists.txt by using this BUILD_TOOLS
option.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
option(DOWNLOAD_BOOST "Download boost source" OFF)
option(BUILD_BOOST "Build boost source" OFF)
+# Project configuration
+option(BUILD_TOOLS "Bulid nnfw projects under tools/" ON)
+
# GTest support
option(BUILD_GTEST "Download and build Google Test" ON)
nnfw_find_package(GTest QUIET)
ifneq ($(OBS_BUILD),OFF)
OPTIONS+= -DBUILD_ARMCOMPUTE=FALSE
+ OPTIONS+= -DBUILD_TOOLS=FALSE
endif
ifeq ($(GENERATE_NNAPI_TESTS),1)
-if(OBS_BUILD)
+if(NOT BUILD_TOOLS)
return()
-endif(OBS_BUILD)
+endif(NOT BUILD_TOOLS)
add_subdirectory(nnapi_quickcheck)
add_subdirectory(opencl_tool)