# (currently used by cpu/acl_cl kernel module which is not proper)
set(NEURUN_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/core/include)
-# Build backends and their kernels
-set(LIB_NEURUN_KERNEL_CPU neurun_kernel_cpu)
-if(NOT "${TARGET_ARCH}" STREQUAL "x86_64")
- set(LIB_NEURUN_KERNEL_ACL_CL neurun_kernel_acl_cl)
- set(LIB_NEURUN_KERNEL_ACL_NEON neurun_kernel_acl_neon)
-endif(NOT "${TARGET_ARCH}" STREQUAL "x86_64")
-
-set(LIB_NEURUN_BACKEND_CPU neurun_backend_cpu)
-if(NOT "${TARGET_ARCH}" STREQUAL "x86_64")
- set(LIB_NEURUN_BACKEND_ACL_CL neurun_backend_acl_cl)
- set(LIB_NEURUN_BACKEND_ACL_NEON neurun_backend_acl_neon)
- set(LIB_NEURUN_BACKEND_ACL_COMMON neurun_backend_acl_common)
-endif(NOT "${TARGET_ARCH}" STREQUAL "x86_64")
add_subdirectory(backend)
-
add_subdirectory(frontend)
-
add_subdirectory(core)
-
# TODO Extract this to `test/CMakeLists.txt`
# Unit Tests
+set(LIB_NEURUN_BACKEND_ACL_COMMON neurun_backend_acl_common)
+
add_subdirectory(cpu)
add_subdirectory(acl_cl)
add_subdirectory(acl_neon)
return()
endif(NOT ARMCompute_FOUND)
+set(LIB_NEURUN_BACKEND_ACL_CL neurun_backend_acl_cl)
+set(LIB_NEURUN_KERNEL_ACL_CL neurun_kernel_acl_cl)
+
add_subdirectory(kernel)
file(GLOB_RECURSE SOURCES "*.cc")
# Unsupported architecture
-if("${TARGET_ARCH}" STREQUAL "x86_64")
+nnfw_find_package(ARMCompute QUIET)
+if(NOT ARMCompute_FOUND)
return()
-endif("${TARGET_ARCH}" STREQUAL "x86_64")
+endif(NOT ARMCompute_FOUND)
+
file(GLOB SOURCES "*.cc")
# Unsupported architecture
-if("${TARGET_ARCH}" STREQUAL "x86_64")
+nnfw_find_package(ARMCompute QUIET)
+if(NOT ARMCompute_FOUND)
return()
-endif("${TARGET_ARCH}" STREQUAL "x86_64")
+endif(NOT ARMCompute_FOUND)
+
+set(LIB_NEURUN_BACKEND_ACL_NEON neurun_backend_acl_neon)
+set(LIB_NEURUN_KERNEL_ACL_NEON neurun_kernel_acl_neon)
add_subdirectory(kernel)
file(GLOB_RECURSE SOURCES "*.cc")
# Unsupported architecture
-if("${TARGET_ARCH}" STREQUAL "x86_64")
+nnfw_find_package(ARMCompute QUIET)
+if(NOT ARMCompute_FOUND)
return()
-endif("${TARGET_ARCH}" STREQUAL "x86_64")
+endif(NOT ARMCompute_FOUND)
file(GLOB SOURCES "*.cc")
+set(LIB_NEURUN_BACKEND_CPU neurun_backend_cpu)
+set(LIB_NEURUN_KERNEL_CPU neurun_kernel_cpu)
+
add_subdirectory(kernel)
file(GLOB_RECURSE SOURCES "*.cc")