Use GLOB in nn runtime's CMakeLists.txt (#1798)
author이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 <sg5.lee@samsung.com>
Thu, 28 Jun 2018 06:30:09 +0000 (15:30 +0900)
committer오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Thu, 28 Jun 2018 06:30:09 +0000 (15:30 +0900)
Use GLOB for listing all sources becasue ...

- Currently we compile all *.cpp sources.
- By using GLOB, we don't need to modify CMakeLists.txt.
- Our other runtimes (pure_arm_compute, new_runtime) already use this feature.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
runtimes/nn/runtime/CMakeLists.txt

index 221546c..72726fd 100644 (file)
@@ -8,14 +8,7 @@ SET (INC_DIRS
      PARENT_SCOPE
 )
 
-SET (CUR_SRCS
-     ${CMAKE_CURRENT_SOURCE_DIR}/NeuralNetworks.cpp
-     ${CMAKE_CURRENT_SOURCE_DIR}/ModelBuilder.cpp
-     ${CMAKE_CURRENT_SOURCE_DIR}/CompilationBuilder.cpp
-     ${CMAKE_CURRENT_SOURCE_DIR}/ExecutionBuilder.cpp
-     ${CMAKE_CURRENT_SOURCE_DIR}/Memory.cpp
-     ${CMAKE_CURRENT_SOURCE_DIR}/Callbacks.cpp
-     ${CMAKE_CURRENT_SOURCE_DIR}/LibraryInfo.cpp)
+FILE (GLOB_RECURSE CUR_SRCS "*.cpp")
 
 SET (SRCS
      ${SRCS}