From f31cd2a3d9756f35ad749ad7aee19b628445316c 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: Tue, 2 Jul 2019 14:03:06 +0900 Subject: [PATCH] Add TensorFlow 1.14 source package (#4043) This commit introduces TensorFlow v1.1.4 source package which allows each sub-project to access T/F 1.14 source during build. Signed-off-by: Jonghyun Park --- .../TensorFlowSource-1.14/TensorFlowSourceConfig.cmake | 18 ++++++++++++++++++ .../TensorFlowSourceConfigVersion.cmake | 10 ++++++++++ 2 files changed, 28 insertions(+) create mode 100644 cmake/packages/TensorFlowSource-1.14/TensorFlowSourceConfig.cmake create mode 100644 cmake/packages/TensorFlowSource-1.14/TensorFlowSourceConfigVersion.cmake diff --git a/cmake/packages/TensorFlowSource-1.14/TensorFlowSourceConfig.cmake b/cmake/packages/TensorFlowSource-1.14/TensorFlowSourceConfig.cmake new file mode 100644 index 0000000..f9df7dc --- /dev/null +++ b/cmake/packages/TensorFlowSource-1.14/TensorFlowSourceConfig.cmake @@ -0,0 +1,18 @@ +function(_TensorFlowSource_import) + if(NOT DOWNLOAD_TENSORFLOW) + set(TensorFlowSource_FOUND FALSE PARENT_SCOPE) + return() + endif(NOT DOWNLOAD_TENSORFLOW) + + nncc_include(ExternalSourceTools) + nncc_include(OptionTools) + + envoption(TENSORFLOW_1_14_URL https://github.com/tensorflow/tensorflow/archive/v1.14.0.tar.gz) + + ExternalSource_Download(TENSORFLOW DIRNAME TENSORFLOW-1.14 ${TENSORFLOW_1_14_URL}) + + set(TensorFlowSource_DIR ${TENSORFLOW_SOURCE_DIR} PARENT_SCOPE) + set(TensorFlowSource_FOUND TRUE PARENT_SCOPE) +endfunction(_TensorFlowSource_import) + +_TensorFlowSource_import() diff --git a/cmake/packages/TensorFlowSource-1.14/TensorFlowSourceConfigVersion.cmake b/cmake/packages/TensorFlowSource-1.14/TensorFlowSourceConfigVersion.cmake new file mode 100644 index 0000000..e9d7db2 --- /dev/null +++ b/cmake/packages/TensorFlowSource-1.14/TensorFlowSourceConfigVersion.cmake @@ -0,0 +1,10 @@ +set(PACKAGE_VERSION "1.14") +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