|
|
|
@ -46,12 +46,12 @@ foreach(sample_filename ${cpp_samples}) |
|
|
|
|
set(package "tutorial") |
|
|
|
|
endif() |
|
|
|
|
ocv_define_sample(tgt ${sample_filename} ${package}) |
|
|
|
|
ocv_target_link_libraries(${tgt} ${OPENCV_LINKER_LIBS} ${OPENCV_CPP_SAMPLES_REQUIRED_DEPS}) |
|
|
|
|
ocv_target_link_libraries(${tgt} LINK_PRIVATE ${OPENCV_LINKER_LIBS} ${OPENCV_CPP_SAMPLES_REQUIRED_DEPS}) |
|
|
|
|
if(sample_filename MATCHES "/gpu/" AND HAVE_opencv_cudaarithm AND HAVE_opencv_cuda_filters) |
|
|
|
|
ocv_target_link_libraries(${tgt} opencv_cudaarithm opencv_cudafilters) |
|
|
|
|
ocv_target_link_libraries(${tgt} LINK_PRIVATE opencv_cudaarithm opencv_cudafilters) |
|
|
|
|
endif() |
|
|
|
|
if(sample_filename MATCHES "/viz/") |
|
|
|
|
ocv_target_link_libraries(${tgt} ${VTK_LIBRARIES}) |
|
|
|
|
ocv_target_link_libraries(${tgt} LINK_PRIVATE ${VTK_LIBRARIES}) |
|
|
|
|
target_compile_definitions(${tgt} PRIVATE -DUSE_VTK) |
|
|
|
|
endif() |
|
|
|
|
if(HAVE_OPENGL AND sample_filename MATCHES "detect_mser") |
|
|
|
|