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