|
|
@ -1132,7 +1132,7 @@ function(ocv_add_perf_tests) |
|
|
|
source_group("Src" FILES "${${the_target}_pch}") |
|
|
|
source_group("Src" FILES "${${the_target}_pch}") |
|
|
|
ocv_add_executable(${the_target} ${OPENCV_PERF_${the_module}_SOURCES} ${${the_target}_pch}) |
|
|
|
ocv_add_executable(${the_target} ${OPENCV_PERF_${the_module}_SOURCES} ${${the_target}_pch}) |
|
|
|
ocv_target_include_modules(${the_target} ${perf_deps} "${perf_path}") |
|
|
|
ocv_target_include_modules(${the_target} ${perf_deps} "${perf_path}") |
|
|
|
ocv_target_link_libraries(${the_target} LINK_PRIVATE ${perf_deps} ${OPENCV_MODULE_${the_module}_DEPS} ${OPENCV_LINKER_LIBS}) |
|
|
|
ocv_target_link_libraries(${the_target} LINK_PRIVATE ${perf_deps} ${OPENCV_MODULE_${the_module}_DEPS} ${OPENCV_LINKER_LIBS} ${OPENCV_PERF_${the_module}_DEPS}) |
|
|
|
add_dependencies(opencv_perf_tests ${the_target}) |
|
|
|
add_dependencies(opencv_perf_tests ${the_target}) |
|
|
|
|
|
|
|
|
|
|
|
set_target_properties(${the_target} PROPERTIES LABELS "${OPENCV_MODULE_${the_module}_LABEL};PerfTest") |
|
|
|
set_target_properties(${the_target} PROPERTIES LABELS "${OPENCV_MODULE_${the_module}_LABEL};PerfTest") |
|
|
@ -1175,7 +1175,7 @@ function(ocv_add_perf_tests) |
|
|
|
endfunction() |
|
|
|
endfunction() |
|
|
|
|
|
|
|
|
|
|
|
# this is a command for adding OpenCV accuracy/regression tests to the module |
|
|
|
# this is a command for adding OpenCV accuracy/regression tests to the module |
|
|
|
# ocv_add_accuracy_tests([FILES <source group name> <list of sources>] [DEPENDS_ON] <list of extra dependencies>) |
|
|
|
# ocv_add_accuracy_tests(<list of extra dependencies>) |
|
|
|
function(ocv_add_accuracy_tests) |
|
|
|
function(ocv_add_accuracy_tests) |
|
|
|
ocv_debug_message("ocv_add_accuracy_tests(" ${ARGN} ")") |
|
|
|
ocv_debug_message("ocv_add_accuracy_tests(" ${ARGN} ")") |
|
|
|
|
|
|
|
|
|
|
@ -1211,7 +1211,7 @@ function(ocv_add_accuracy_tests) |
|
|
|
source_group("Src" FILES "${${the_target}_pch}") |
|
|
|
source_group("Src" FILES "${${the_target}_pch}") |
|
|
|
ocv_add_executable(${the_target} ${OPENCV_TEST_${the_module}_SOURCES} ${${the_target}_pch}) |
|
|
|
ocv_add_executable(${the_target} ${OPENCV_TEST_${the_module}_SOURCES} ${${the_target}_pch}) |
|
|
|
ocv_target_include_modules(${the_target} ${test_deps} "${test_path}") |
|
|
|
ocv_target_include_modules(${the_target} ${test_deps} "${test_path}") |
|
|
|
ocv_target_link_libraries(${the_target} LINK_PRIVATE ${test_deps} ${OPENCV_MODULE_${the_module}_DEPS} ${OPENCV_LINKER_LIBS}) |
|
|
|
ocv_target_link_libraries(${the_target} LINK_PRIVATE ${test_deps} ${OPENCV_MODULE_${the_module}_DEPS} ${OPENCV_LINKER_LIBS} ${OPENCV_TEST_${the_module}_DEPS}) |
|
|
|
add_dependencies(opencv_tests ${the_target}) |
|
|
|
add_dependencies(opencv_tests ${the_target}) |
|
|
|
|
|
|
|
|
|
|
|
set_target_properties(${the_target} PROPERTIES LABELS "${OPENCV_MODULE_${the_module}_LABEL};AccuracyTest") |
|
|
|
set_target_properties(${the_target} PROPERTIES LABELS "${OPENCV_MODULE_${the_module}_LABEL};AccuracyTest") |
|
|
|