1 if(NOT WITH_VTK OR NOT DEFINED HAVE_VTK OR NOT HAVE_VTK) 2 ocv_module_disable(viz) 3 endif() 4 5 include(${VTK_USE_FILE}) 6 set(the_description "Viz") 7 ocv_define_module(viz opencv_core ${VTK_LIBRARIES} WRAP python) 8 9 if(APPLE AND BUILD_opencv_viz) 10 ocv_target_link_libraries(opencv_viz "-framework Cocoa") 11 endif() 12 13 if(TARGET opencv_test_viz) 14 set_target_properties(opencv_test_viz PROPERTIES MACOSX_BUNDLE TRUE) 15 endif() 16