summaryrefslogtreecommitdiff
path: root/infra/nnfw/cmake/packages/Enum34SourceConfig.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'infra/nnfw/cmake/packages/Enum34SourceConfig.cmake')
-rw-r--r--infra/nnfw/cmake/packages/Enum34SourceConfig.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/infra/nnfw/cmake/packages/Enum34SourceConfig.cmake b/infra/nnfw/cmake/packages/Enum34SourceConfig.cmake
new file mode 100644
index 000000000..96b6ca85a
--- /dev/null
+++ b/infra/nnfw/cmake/packages/Enum34SourceConfig.cmake
@@ -0,0 +1,14 @@
+function(_enum34Source_import)
+ nnfw_include(ExternalSourceTools)
+ nnfw_include(OptionTools)
+
+ envoption(EXTERNAL_DOWNLOAD_SERVER "https://bitbucket.org")
+ set(ENUM34_URL ${EXTERNAL_DOWNLOAD_SERVER}/stoneleaf/enum34/get/1.1.6.tar.gz)
+
+ ExternalSource_Get("python_enum" ${DOWNLOAD_NNPACK} ${ENUM34_URL})
+
+ set(PYTHON_ENUM_SOURCE_DIR ${python_enum_SOURCE_DIR} PARENT_SCOPE)
+ set(PYTHON_ENUM_SOURCE_FOUND ${python_enum_SOURCE_GET} PARENT_SCOPE)
+endfunction(_enum34Source_import)
+
+_enum34Source_import()