From cc992f969bf56b0bd7aef61298ed817da1e53c07 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=B0=95=EC=A2=85=ED=98=84/On-Device=20Lab=28SR=29/Staff?= =?utf8?q?=20Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Fri, 12 Apr 2019 17:50:28 +0900 Subject: [PATCH] Introduce ONNXSource 1.4.1 package (#3252) Now, users are able to access the source of ONNX 1.4.1 release. Signed-off-by: Jonghyun Park --- cmake/packages/ONNXSource-1.4.1/ONNXSourceConfig.cmake | 18 ++++++++++++++++++ .../ONNXSource-1.4.1/ONNXSourceConfigVersion.cmake | 10 ++++++++++ 2 files changed, 28 insertions(+) create mode 100644 cmake/packages/ONNXSource-1.4.1/ONNXSourceConfig.cmake create mode 100644 cmake/packages/ONNXSource-1.4.1/ONNXSourceConfigVersion.cmake diff --git a/cmake/packages/ONNXSource-1.4.1/ONNXSourceConfig.cmake b/cmake/packages/ONNXSource-1.4.1/ONNXSourceConfig.cmake new file mode 100644 index 0000000..0c6d61f --- /dev/null +++ b/cmake/packages/ONNXSource-1.4.1/ONNXSourceConfig.cmake @@ -0,0 +1,18 @@ +function(_ONNXSource_import) + if(NOT DOWNLOAD_ONNX) + set(ONNXSource_FOUND FALSE PARENT_SCOPE) + return() + endif(NOT DOWNLOAD_ONNX) + + nncc_include(ExternalSourceTools) + nncc_include(OptionTools) + + envoption(ONNX_1_4_1_URL https://github.com/onnx/onnx/archive/v1.4.1.zip) + + ExternalSource_Download(ONNX DIRNAME ONNX-1.4.1 ${ONNX_1_4_1_URL}) + + set(ONNXSource_DIR ${ONNX_SOURCE_DIR} PARENT_SCOPE) + set(ONNXSource_FOUND TRUE PARENT_SCOPE) +endfunction(_ONNXSource_import) + +_ONNXSource_import() diff --git a/cmake/packages/ONNXSource-1.4.1/ONNXSourceConfigVersion.cmake b/cmake/packages/ONNXSource-1.4.1/ONNXSourceConfigVersion.cmake new file mode 100644 index 0000000..802b464 --- /dev/null +++ b/cmake/packages/ONNXSource-1.4.1/ONNXSourceConfigVersion.cmake @@ -0,0 +1,10 @@ +set(PACKAGE_VERSION "1.4.1") +set(PACKAGE_VERSION_EXACT FALSE) +set(PACKAGE_VERSION_COMPATIBLE FALSE) +set(PACKAGE_VERSION_UNSUITABLE TRUE) + +if(PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION) + set(PACKAGE_VERSION_EXACT TRUE) + set(PACKAGE_VERSION_COMPATIBLE TRUE) + set(PACKAGE_VERSION_UNSUITABLE FALSE) +endif(PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION) -- 2.7.4