CMakeLists.txt 398 Bytes
Newer Older
wester committed
1 2 3 4 5
if(NOT WITH_VTK OR NOT DEFINED HAVE_VTK OR NOT HAVE_VTK)
  ocv_module_disable(viz)
endif()

include(${VTK_USE_FILE})
a  
Kai Westerkamp committed
6
set(the_description "Viz")
wester committed
7
ocv_define_module(viz opencv_core ${VTK_LIBRARIES})
wester committed
8 9

if(APPLE AND BUILD_opencv_viz)
wester committed
10
  target_link_libraries(opencv_viz "-framework Cocoa")
wester committed
11 12 13 14 15
endif()

if(TARGET opencv_test_viz)
  set_target_properties(opencv_test_viz PROPERTIES MACOSX_BUNDLE TRUE)
endif()