return()
endif(NOT ENCO_CAFFE_TEST)
+# TODO Use REQUIRED if supported
+nncc_find_resource(BVLCCaffeTests)
+
+if(NOT BVLCCaffeTests_FOUND)
+ message(FATAL_ERROR "Fail to find BVLCCaffeTests")
+endif(NOT BVLCCaffeTests_FOUND)
+
# TESTCASE_BASE_DIR indicates where all the testcases are located
-set(TESTCASE_BASE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
+set(TESTCASE_BASE_DIR "${BVLCCaffeTests_DIR}")
###
### Common function(s)
return()
endif(NOT TARGET enco_caffe_frontend)
+# TODO Use "whitelist" instead
+#
+# WHY?
+#
+# Tests are now shared by multiple frameworks (not private), and thus
+# some tests may be unsupported.
+#
file(GLOB MODELS RELATIVE "${TESTCASE_BASE_DIR}" "${TESTCASE_BASE_DIR}/*/test.prototxt")
foreach(MODEL IN ITEMS ${MODELS})