summaryrefslogtreecommitdiff
path: root/infra/nncc/cmake/packages/GFlagsSourceConfig.cmake
diff options
context:
space:
mode:
authorChunseok Lee <chunseok.lee@samsung.com>2020-03-05 15:10:09 +0900
committerChunseok Lee <chunseok.lee@samsung.com>2020-03-05 15:22:53 +0900
commitd91a039e0eda6fd70dcd22672b8ce1817c1ca50e (patch)
tree62668ec548cf31fadbbf4e99522999ad13434a25 /infra/nncc/cmake/packages/GFlagsSourceConfig.cmake
parentbd11b24234d7d43dfe05a81c520aa01ffad06e42 (diff)
downloadnnfw-d91a039e0eda6fd70dcd22672b8ce1817c1ca50e.tar.gz
nnfw-d91a039e0eda6fd70dcd22672b8ce1817c1ca50e.tar.bz2
nnfw-d91a039e0eda6fd70dcd22672b8ce1817c1ca50e.zip
catch up to tizen_5.5 and remove unness dir
- update to tizen_5.5 - remove dirs
Diffstat (limited to 'infra/nncc/cmake/packages/GFlagsSourceConfig.cmake')
-rw-r--r--infra/nncc/cmake/packages/GFlagsSourceConfig.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/infra/nncc/cmake/packages/GFlagsSourceConfig.cmake b/infra/nncc/cmake/packages/GFlagsSourceConfig.cmake
new file mode 100644
index 000000000..17970b0ec
--- /dev/null
+++ b/infra/nncc/cmake/packages/GFlagsSourceConfig.cmake
@@ -0,0 +1,18 @@
+function(_GFlagsSource_import)
+ if(NOT DOWNLOAD_GFLAGS)
+ set(GFlagsSource_FOUND False PARENT_SCOPE)
+ return()
+ endif(NOT DOWNLOAD_GFLAGS)
+
+ nncc_include(ExternalSourceTools)
+ nncc_include(OptionTools)
+
+ envoption(GFLAGS_URL https://github.com/gflags/gflags/archive/v2.2.1.tar.gz)
+
+ ExternalSource_Download(GFLAGS ${GFLAGS_URL})
+
+ set(GFLAGS_SOURCE_DIR ${GFLAGS_SOURCE_DIR} PARENT_SCOPE)
+ set(GFlagsSource_FOUND True PARENT_SCOPE)
+endfunction(_GFlagsSource_import)
+
+_GFlagsSource_import()