|
|
|
@ -934,11 +934,15 @@ macro(_ocv_create_module) |
|
|
|
|
set_source_files_properties(${OPENCV_MODULE_${the_module}_HEADERS} ${OPENCV_MODULE_${the_module}_SOURCES} ${${the_module}_pch} |
|
|
|
|
PROPERTIES LABELS "${OPENCV_MODULE_${the_module}_LABEL};Module") |
|
|
|
|
|
|
|
|
|
ocv_target_link_libraries(${the_module} LINK_PUBLIC ${OPENCV_MODULE_${the_module}_DEPS_TO_LINK}) |
|
|
|
|
ocv_target_link_libraries(${the_module} LINK_PUBLIC ${OPENCV_MODULE_${the_module}_DEPS_EXT}) |
|
|
|
|
ocv_target_link_libraries(${the_module} LINK_PRIVATE ${OPENCV_LINKER_LIBS} ${OPENCV_HAL_LINKER_LIBS} ${IPP_LIBS} ${ARGN}) |
|
|
|
|
ocv_target_link_libraries(${the_module} PUBLIC ${OPENCV_MODULE_${the_module}_DEPS_TO_LINK} |
|
|
|
|
INTERFACE ${OPENCV_MODULE_${the_module}_DEPS_TO_LINK} |
|
|
|
|
) |
|
|
|
|
ocv_target_link_libraries(${the_module} PUBLIC ${OPENCV_MODULE_${the_module}_DEPS_EXT} |
|
|
|
|
INTERFACE ${OPENCV_MODULE_${the_module}_DEPS_EXT} |
|
|
|
|
) |
|
|
|
|
ocv_target_link_libraries(${the_module} PRIVATE ${OPENCV_LINKER_LIBS} ${OPENCV_HAL_LINKER_LIBS} ${IPP_LIBS} ${ARGN}) |
|
|
|
|
if (HAVE_CUDA) |
|
|
|
|
ocv_target_link_libraries(${the_module} LINK_PRIVATE ${CUDA_LIBRARIES} ${CUDA_npp_LIBRARY}) |
|
|
|
|
ocv_target_link_libraries(${the_module} PRIVATE ${CUDA_LIBRARIES} ${CUDA_npp_LIBRARY}) |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
if(OPENCV_MODULE_${the_module}_COMPILE_DEFINITIONS) |
|
|
|
@ -1145,7 +1149,7 @@ function(ocv_add_perf_tests) |
|
|
|
|
source_group("Src" FILES "${${the_target}_pch}") |
|
|
|
|
ocv_add_executable(${the_target} ${OPENCV_PERF_${the_module}_SOURCES} ${${the_target}_pch}) |
|
|
|
|
ocv_target_include_modules(${the_target} ${perf_deps}) |
|
|
|
|
ocv_target_link_libraries(${the_target} LINK_PRIVATE ${perf_deps} ${OPENCV_MODULE_${the_module}_DEPS} ${OPENCV_LINKER_LIBS} ${OPENCV_PERF_${the_module}_DEPS}) |
|
|
|
|
ocv_target_link_libraries(${the_target} PRIVATE ${perf_deps} ${OPENCV_MODULE_${the_module}_DEPS} ${OPENCV_LINKER_LIBS} ${OPENCV_PERF_${the_module}_DEPS}) |
|
|
|
|
add_dependencies(opencv_perf_tests ${the_target}) |
|
|
|
|
|
|
|
|
|
set_target_properties(${the_target} PROPERTIES LABELS "${OPENCV_MODULE_${the_module}_LABEL};PerfTest") |
|
|
|
@ -1226,7 +1230,7 @@ function(ocv_add_accuracy_tests) |
|
|
|
|
if(EXISTS "${CMAKE_CURRENT_BINARY_DIR}/test") |
|
|
|
|
ocv_target_include_directories(${the_target} "${CMAKE_CURRENT_BINARY_DIR}/test") |
|
|
|
|
endif() |
|
|
|
|
ocv_target_link_libraries(${the_target} LINK_PRIVATE ${test_deps} ${OPENCV_MODULE_${the_module}_DEPS} ${OPENCV_LINKER_LIBS} ${OPENCV_TEST_${the_module}_DEPS}) |
|
|
|
|
ocv_target_link_libraries(${the_target} PRIVATE ${test_deps} ${OPENCV_MODULE_${the_module}_DEPS} ${OPENCV_LINKER_LIBS} ${OPENCV_TEST_${the_module}_DEPS}) |
|
|
|
|
add_dependencies(opencv_tests ${the_target}) |
|
|
|
|
|
|
|
|
|
set_target_properties(${the_target} PROPERTIES LABELS "${OPENCV_MODULE_${the_module}_LABEL};AccuracyTest") |
|
|
|
@ -1287,7 +1291,7 @@ function(ocv_add_samples) |
|
|
|
|
|
|
|
|
|
ocv_add_executable(${the_target} "${source}") |
|
|
|
|
ocv_target_include_modules(${the_target} ${samples_deps}) |
|
|
|
|
ocv_target_link_libraries(${the_target} LINK_PRIVATE ${samples_deps}) |
|
|
|
|
ocv_target_link_libraries(${the_target} PRIVATE ${samples_deps}) |
|
|
|
|
|
|
|
|
|
set_target_properties(${the_target} PROPERTIES |
|
|
|
|
PROJECT_LABEL "(sample) ${name}" |
|
|
|
|