Use add_subdirectories for contrib and tools (#4708)
author박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Wed, 13 Mar 2019 07:18:47 +0000 (16:18 +0900)
committer오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Wed, 13 Mar 2019 07:18:47 +0000 (16:18 +0900)
This commit simplifies "contrib/CMakeLists.txt" and
"tools/CMakeLists.txt" using "add_subdirectories" function.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/CMakeLists.txt
tools/CMakeLists.txt

index 78417ea..5ea6cda 100644 (file)
@@ -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()
index a498d90..ba69aaf 100644 (file)
@@ -2,5 +2,4 @@ if(NOT BUILD_TOOLS)
   return()
 endif(NOT BUILD_TOOLS)
 
-add_subdirectory(nnapi_quickcheck)
-add_subdirectory(opencl_tool)
+add_subdirectories()