File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,15 +33,15 @@ endif()
33
33
if (NOT HAVE_opencv_cudaarithm OR NOT HAVE_opencv_cudafilters)
34
34
ocv_list_filterout(cpp_samples "/gpu/" )
35
35
endif ()
36
- if (NOT TARGET opencv_viz )
36
+ if (NOT VTK_USE_FILE )
37
37
ocv_list_filterout(cpp_samples "/viz/" )
38
38
endif ()
39
39
if (NOT HAVE_IPP_A)
40
40
ocv_list_filterout(cpp_samples "/ippasync/" )
41
41
endif ()
42
42
ocv_list_filterout(cpp_samples "real_time_pose_estimation/" )
43
43
foreach (sample_filename ${cpp_samples} )
44
- if (sample_filename MATCHES "viz/" AND VTK_USE_FILE )
44
+ if (sample_filename MATCHES "/ viz/" )
45
45
include (${VTK_USE_FILE} )
46
46
endif ()
47
47
set (package "cpp" )
@@ -50,10 +50,10 @@ foreach(sample_filename ${cpp_samples})
50
50
endif ()
51
51
ocv_define_sample(tgt ${sample_filename} ${package} )
52
52
ocv_target_link_libraries(${tgt} ${OPENCV_LINKER_LIBS} ${OPENCV_CPP_SAMPLES_REQUIRED_DEPS} )
53
- if (sample_filename MATCHES "gpu/" AND HAVE_opencv_cudaarithm AND HAVE_opencv_cuda_filters)
53
+ if (sample_filename MATCHES "/ gpu/" AND HAVE_opencv_cudaarithm AND HAVE_opencv_cuda_filters)
54
54
ocv_target_link_libraries(${tgt} opencv_cudaarithm opencv_cudafilters)
55
55
endif ()
56
- if (sample_filename MATCHES "viz/" AND VTK_USE_FILE )
56
+ if (sample_filename MATCHES "/ viz/" )
57
57
ocv_target_link_libraries(${tgt} ${VTK_LIBRARIES} )
58
58
target_compile_definitions (${tgt} PRIVATE -DUSE_VTK)
59
59
endif ()
You can’t perform that action at this time.
0 commit comments