@@ -1132,7 +1132,7 @@ function(ocv_add_perf_tests)
1132
1132
source_group ("Src" FILES "${${the_target} _pch}" )
1133
1133
ocv_add_executable (${the_target} ${OPENCV_PERF_${the_module}_SOURCES} ${${the_target}_pch} )
1134
1134
ocv_target_include_modules (${the_target} ${perf_deps} "${perf_path} " )
1135
- ocv_target_link_libraries (${the_target} LINK_PRIVATE ${perf_deps} ${OPENCV_MODULE_${the_module}_DEPS} ${OPENCV_LINKER_LIBS} )
1135
+ ocv_target_link_libraries (${the_target} LINK_PRIVATE ${perf_deps} ${OPENCV_MODULE_${the_module}_DEPS} ${OPENCV_LINKER_LIBS} ${OPENCV_PERF_${the_module}_DEPS} )
1136
1136
add_dependencies (opencv_perf_tests ${the_target} )
1137
1137
1138
1138
set_target_properties (${the_target} PROPERTIES LABELS "${OPENCV_MODULE_${the_module} _LABEL};PerfTest" )
@@ -1175,7 +1175,7 @@ function(ocv_add_perf_tests)
1175
1175
endfunction ()
1176
1176
1177
1177
# this is a command for adding OpenCV accuracy/regression tests to the module
1178
- # ocv_add_accuracy_tests([FILES <source group name> <list of sources>] [DEPENDS_ON] <list of extra dependencies>)
1178
+ # ocv_add_accuracy_tests(<list of extra dependencies>)
1179
1179
function (ocv_add_accuracy_tests )
1180
1180
ocv_debug_message ("ocv_add_accuracy_tests(" ${ARGN} ")" )
1181
1181
@@ -1211,7 +1211,7 @@ function(ocv_add_accuracy_tests)
1211
1211
source_group ("Src" FILES "${${the_target} _pch}" )
1212
1212
ocv_add_executable (${the_target} ${OPENCV_TEST_${the_module}_SOURCES} ${${the_target}_pch} )
1213
1213
ocv_target_include_modules (${the_target} ${test_deps} "${test_path} " )
1214
- ocv_target_link_libraries (${the_target} LINK_PRIVATE ${test_deps} ${OPENCV_MODULE_${the_module}_DEPS} ${OPENCV_LINKER_LIBS} )
1214
+ ocv_target_link_libraries (${the_target} LINK_PRIVATE ${test_deps} ${OPENCV_MODULE_${the_module}_DEPS} ${OPENCV_LINKER_LIBS} ${OPENCV_TEST_${the_module}_DEPS} )
1215
1215
add_dependencies (opencv_tests ${the_target} )
1216
1216
1217
1217
set_target_properties (${the_target} PROPERTIES LABELS "${OPENCV_MODULE_${the_module} _LABEL};AccuracyTest" )
0 commit comments