message(WARNING"VTK disabled. You are to build OpenCV in STATIC but VTK is SHARED!")
endif()
else()
else()
set(HAVE_VTKOFF)
set(HAVE_VTKOFF)
message(STATUS"VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or set $VTK_DIR enviroment variable to VTK install subdirectory with UseVTK.cmake file (for windows)")
message(STATUS"VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or set $VTK_DIR enviroment variable to VTK install subdirectory with VTKConfig.cmake file (for windows)")