25 lines
895 B
Diff
25 lines
895 B
Diff
From 7856f14558f37021c1d5b76ade40ac78e59a422d Mon Sep 17 00:00:00 2001
|
|
From: Maksim Shabunin <maksim.shabunin@gmail.com>
|
|
Date: Sat, 30 May 2020 06:07:39 +0300
|
|
Subject: [PATCH] Added VTK 9 support
|
|
|
|
---
|
|
cmake/OpenCVDetectVTK.cmake | 7 +++++++
|
|
1 file changed, 7 insertions(+)
|
|
|
|
diff --git a/cmake/OpenCVDetectVTK.cmake b/cmake/OpenCVDetectVTK.cmake
|
|
index 0f2b9584e12..23d17c35241 100644
|
|
--- a/cmake/OpenCVDetectVTK.cmake
|
|
+++ b/cmake/OpenCVDetectVTK.cmake
|
|
@@ -1,3 +1,10 @@
|
|
+# VTK 9.0
|
|
+find_package(VTK QUIET NAMES vtk COMPONENTS InteractionStyle RenderingLOD IOPLY FiltersTexture RenderingFreeType IOExport IOGeometry FiltersExtraction RenderingCore NO_MODULE)
|
|
+if(VTK_FOUND)
|
|
+ set(HAVE_VTK ON)
|
|
+ return()
|
|
+endif()
|
|
+
|
|
# VTK 6.x components
|
|
find_package(VTK QUIET COMPONENTS vtkInteractionStyle vtkRenderingLOD vtkIOPLY vtkFiltersTexture vtkRenderingFreeType vtkIOExport NO_MODULE)
|
|
IF(VTK_FOUND)
|