# Configuration flags
#
option(BUILD_ACL "Build ARM Compute Library" OFF)
+option(BUILD_PURE_ARM_COMPUTE "Build pure_arm_compute runtime" OFF)
option(BUILD_ACL_STATIC_LIB "Build ARM Comput Static Library" OFF)
option(BUILD_BENCHMARK_ACL "Build ARM Compute Library Benchmarks" OFF)
option(BUILD_NN_RUNTIME "Build NN Runtime" ON)
target_include_directories(arm_compute_core PUBLIC "${ACL_BASE}/include")
target_include_directories(arm_compute_core PUBLIC "${ACL_BASE}/arm_compute/core/NEON/kernels/assembly")
target_link_libraries(arm_compute_core dl pthread)
+install(TARGETS arm_compute_core DESTINATION lib)
list(APPEND ACL_RUNTIME_SRCS ${ACL_RUNTIME_COMMON_SRCS})
list(APPEND ACL_RUNTIME_SRCS ${ACL_RUNTIME_OPENCL_SRCS})
add_library(arm_compute SHARED ${ACL_RUNTIME_SRCS})
target_link_libraries(arm_compute arm_compute_core OpenCL)
+install(TARGETS arm_compute DESTINATION lib)
add_library(arm_compute_graph SHARED ${ACL_GRAPH_SRCS})
target_link_libraries(arm_compute_graph arm_compute)
+install(TARGETS arm_compute_graph DESTINATION lib)
add_library(arm_compute_test SHARED "${ACL_BASE}/utils/Utils.cpp")
target_link_libraries(arm_compute_test arm_compute)
-if(TARGET arm_compute)
+if(BUILD_PURE_ARM_COMPUTE)
file(GLOB_RECURSE SOURCES "src/*.cc")
add_library(nnapi_pure_arm_compute SHARED ${SOURCES})
target_link_libraries(nnapi_pure_arm_compute arm_compute)
target_link_libraries(nnapi_pure_arm_compute nnfw_util)
set_target_properties(nnapi_pure_arm_compute PROPERTIES OUTPUT_NAME neuralnetworks)
-endif(TARGET arm_compute)
+ install(TARGETS nnapi_pure_arm_compute DESTINATION lib/pureacl RENAME neuralnetworks)
+endif(BUILD_PURE_ARM_COMPUTE)