message: examples/aditofdemo/CMakeLists.txt: enable/disable point cloud if viz module found
diff: @@ -8,6 +8,14 @@ if(OPENCV_FOUND OR
  message(STATUS "USING OPENCV Version 2")
  add_definitions(-DOPENCV2)
  endif(OpenCV_VERSION VERSION_LESS "3.0.0")
  +
  + find_package(OpenCV QUIET COMPONENTS opencv_viz)
  + if(OpenCV_opencv_viz_FOUND)
  + add_definitions(-DDEMO_POINT_CLOUD)
  + message(STATUS "OpenCV viz module found, turning on pointCloud display")
  + else()
  + message(STATUS "OpenCV viz module not found, turning off pointCloud display")
  + endif()
  else()
  if (NOT OpenCV_INCLUDE_DIR OR NOT OpenCV_LIBS)
  message(FATAL_ERROR "find_package(openCV) failed. OpenCV_INCLUDE_DIR and OpenCV_LIBS need to be set.")
  