diff options
Diffstat (limited to 'runtime/contrib/pure_arm_compute/CMakeLists.txt')
-rw-r--r-- | runtime/contrib/pure_arm_compute/CMakeLists.txt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/runtime/contrib/pure_arm_compute/CMakeLists.txt b/runtime/contrib/pure_arm_compute/CMakeLists.txt new file mode 100644 index 000000000..f9cdfcba9 --- /dev/null +++ b/runtime/contrib/pure_arm_compute/CMakeLists.txt @@ -0,0 +1,29 @@ +if(NOT BUILD_PURE_ARM_COMPUTE) + return() +endif(NOT BUILD_PURE_ARM_COMPUTE) + +nnas_find_package(ARMCompute REQUIRED) + +file(GLOB_RECURSE SOURCES "src/*.cc") + +add_library(nnapi_pure_arm_compute SHARED ${SOURCES}) +# To ignore compiler warnings from ARM Compute Library +target_compile_options(nnapi_pure_arm_compute PRIVATE -Wno-ignored-attributes) +target_include_directories(nnapi_pure_arm_compute PUBLIC src) +if(BUILD_TFLITE_BENCHMARK_MODEL) + target_compile_definitions(nnapi_pure_arm_compute PUBLIC "TFLITE_PROFILING_ENABLED") +endif() +target_link_libraries(nnapi_pure_arm_compute nnfw-nnapi-header) +target_link_libraries(nnapi_pure_arm_compute arm_compute arm_compute_ex) +target_link_libraries(nnapi_pure_arm_compute nnfw_lib_cpp14 nnfw_lib_misc nnfw_lib_profiling) + +if(ANDROID) + target_link_libraries(nnapi_pure_arm_compute log) +endif() + +set_target_properties(nnapi_pure_arm_compute PROPERTIES OUTPUT_NAME neuralnetworks) +install(TARGETS nnapi_pure_arm_compute DESTINATION lib/pureacl RENAME neuralnetworks) + +# To prevent undefined references +add_executable(pure_arm_compute_symbolcheck symbolcheck.cpp) +target_link_libraries(pure_arm_compute_symbolcheck nnapi_pure_arm_compute) |