[enco] Allow users to disable caffe test (#2037)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Tue, 30 Oct 2018 04:21:39 +0000 (13:21 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Tue, 30 Oct 2018 04:21:39 +0000 (13:21 +0900)
With this commit, users are now able to disable caffe test via CMake configuration.
Note that this commit does not change the default behavior.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/enco/test/caffe/CMakeLists.txt

index 6a282a5..23ad917 100644 (file)
@@ -1,3 +1,9 @@
+option(ENCO_CAFFE_TEST "Build and run Caffe tests" ON)
+
+if(NOT ENCO_CAFFE_TEST)
+  return()
+endif(NOT ENCO_CAFFE_TEST)
+
 ###
 ### Common function(s)
 ###