From: 박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 Date: Wed, 13 Mar 2019 07:18:47 +0000 (+0900) Subject: Use add_subdirectories for contrib and tools (#4708) X-Git-Tag: submit/tizen/20190325.013700~78 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b0f0c0da603ed72652fbea7a7996d85ca141512b;p=platform%2Fcore%2Fml%2Fnnfw.git Use add_subdirectories for contrib and tools (#4708) This commit simplifies "contrib/CMakeLists.txt" and "tools/CMakeLists.txt" using "add_subdirectories" function. Signed-off-by: Jonghyun Park --- diff --git a/contrib/CMakeLists.txt b/contrib/CMakeLists.txt index 78417ea..5ea6cda 100644 --- a/contrib/CMakeLists.txt +++ b/contrib/CMakeLists.txt @@ -1,6 +1 @@ -file(GLOB CONTRIB_CMAKE_FILES "*/CMakeLists.txt") - -foreach(CONTRIB_CMAKE_FILE ${CONTRIB_CMAKE_FILES}) - get_filename_component(CONTRIB_BASE ${CONTRIB_CMAKE_FILE} DIRECTORY) - add_subdirectory(${CONTRIB_BASE}) -endforeach(CONTRIB_CMAKE_FILE ${CONTRIB_CMAKE_FILES}) +add_subdirectories() diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index a498d90..ba69aaf 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -2,5 +2,4 @@ if(NOT BUILD_TOOLS) return() endif(NOT BUILD_TOOLS) -add_subdirectory(nnapi_quickcheck) -add_subdirectory(opencl_tool) +add_subdirectories()