Before `add_subdirectory(tests)` was called twice if we run both two
runtimes which causes cmake error.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
+set(BUILD_RUNTIME_TESTS OFF)
+
if(BUILD_NN_RUNTIME)
set(LIB_RUNTIME runtime)
add_subdirectory(nn)
- add_subdirectory(tests)
+ set(BUILD_RUNTIME_TESTS ON)
endif(BUILD_NN_RUNTIME)
if(BUILD_NEW_RUNTIME)
set(LIB_NEW_RUNTIME new_runtime)
add_subdirectory(new_runtime)
- add_subdirectory(tests)
+ set(BUILD_RUNTIME_TESTS ON)
endif(BUILD_NEW_RUNTIME)
+if(BUILD_RUNTIME_TESTS)
+ add_subdirectory(tests)
+endif(BUILD_RUNTIME_TESTS)
+
add_subdirectory(template)
add_subdirectory(logging)
add_subdirectory(pure_arm_compute)