summaryrefslogtreecommitdiff
path: root/infra/nnfw/cmake/packages/ARMComputeSourceConfig.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'infra/nnfw/cmake/packages/ARMComputeSourceConfig.cmake')
-rw-r--r--infra/nnfw/cmake/packages/ARMComputeSourceConfig.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/infra/nnfw/cmake/packages/ARMComputeSourceConfig.cmake b/infra/nnfw/cmake/packages/ARMComputeSourceConfig.cmake
new file mode 100644
index 000000000..ef7384d7c
--- /dev/null
+++ b/infra/nnfw/cmake/packages/ARMComputeSourceConfig.cmake
@@ -0,0 +1,13 @@
+function(_ARMComputeSource_import)
+ nnfw_include(ExternalSourceTools)
+ nnfw_include(OptionTools)
+
+ envoption(EXTERNAL_DOWNLOAD_SERVER "https://github.com")
+ set(ARMCOMPUTE_URL ${EXTERNAL_DOWNLOAD_SERVER}/ARM-software/ComputeLibrary/archive/v19.05.tar.gz)
+ ExternalSource_Get("acl" ${DOWNLOAD_ARMCOMPUTE} ${ARMCOMPUTE_URL})
+
+ set(ARMComputeSource_DIR ${acl_SOURCE_DIR} PARENT_SCOPE)
+ set(ARMComputeSource_FOUND ${acl_SOURCE_GET} PARENT_SCOPE)
+endfunction(_ARMComputeSource_import)
+
+_ARMComputeSource_import()