From a22a9e60771351f313ad6944ff0766713c48b0ea Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=B0=95=EC=A2=85=ED=98=84/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Senior=20Engineer/=EC=82=BC=EC=84=B1?= =?utf8?q?=EC=A0=84=EC=9E=90?= Date: Thu, 29 Mar 2018 14:56:15 +0900 Subject: [PATCH] Allow users to skip NN Runtime and experimental projects (#292) This commit updates CMakeLists.txt to allow users to skip NN Runtime and experimental project build. Signed-off-by: Jonghyun Park --- CMakeLists.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 11c4dea..98051c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,6 +71,8 @@ endforeach() # option(BUILD_ACL "Build ARM Compute Library" OFF) option(BUILD_BENCHMARK_ACL "Build ARM Compute Library Benchmarks" OFF) +option(BUILD_NN_RUNTIME "Build NN Runtime" ON) +option(BUILD_EXPERIMENTS "Build experimental projects" ON) # # Common variables @@ -79,6 +81,11 @@ set(NNFW_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/include) add_subdirectory(externals) add_subdirectory(tools) -add_subdirectory(src) -add_subdirectory(experiments) +if(BUILD_NN_RUNTIME) + add_subdirectory(src) +endif(BUILD_NN_RUNTIME) + +if(BUILD_EXPERIMENTS) + add_subdirectory(experiments) +endif(BUILD_EXPERIMENTS) add_subdirectory(benchmark) -- 2.7.4