summaryrefslogtreecommitdiff
path: root/infra/cmake/packages/CaffeSourceConfig.cmake
diff options
context:
space:
mode:
authorChunseok Lee <chunseok.lee@samsung.com>2020-12-14 14:43:04 +0900
committerChunseok Lee <chunseok.lee@samsung.com>2020-12-14 14:43:04 +0900
commit12d88feea8573f8490629cf62fc342b152e57d65 (patch)
tree3c734cc4d629834d2d523f4575ef84cd64684e57 /infra/cmake/packages/CaffeSourceConfig.cmake
parentd6b371e095d737922187a518b8faba1ef6f3a2b1 (diff)
downloadnnfw-12d88feea8573f8490629cf62fc342b152e57d65.tar.gz
nnfw-12d88feea8573f8490629cf62fc342b152e57d65.tar.bz2
nnfw-12d88feea8573f8490629cf62fc342b152e57d65.zip
Imported Upstream version 1.11.0upstream/1.11.0
Diffstat (limited to 'infra/cmake/packages/CaffeSourceConfig.cmake')
-rw-r--r--infra/cmake/packages/CaffeSourceConfig.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/infra/cmake/packages/CaffeSourceConfig.cmake b/infra/cmake/packages/CaffeSourceConfig.cmake
new file mode 100644
index 000000000..41cc2c9f7
--- /dev/null
+++ b/infra/cmake/packages/CaffeSourceConfig.cmake
@@ -0,0 +1,18 @@
+function(_CaffeSource_import)
+ if(NOT DOWNLOAD_CAFFE)
+ set(CaffeSource_FOUND FALSE PARENT_SCOPE)
+ return()
+ endif(NOT DOWNLOAD_CAFFE)
+
+ nnas_include(ExternalSourceTools)
+ nnas_include(OptionTools)
+
+ envoption(CAFFE_URL https://github.com/BVLC/caffe/archive/1.0.tar.gz)
+
+ ExternalSource_Download(CAFFE ${CAFFE_URL})
+
+ set(CaffeSource_DIR ${CAFFE_SOURCE_DIR} PARENT_SCOPE)
+ set(CaffeSource_FOUND ${DOWNLOAD_CAFFE} PARENT_SCOPE)
+endfunction(_CaffeSource_import)
+
+_CaffeSource_import()