]> Creatis software - clitk.git/blobdiff - cmake/dependencies.cmake
Merge branch 'master' of git.creatis.insa-lyon.fr:clitk
[clitk.git] / cmake / dependencies.cmake
index 225ddccb1bdba22c30df0354347852f2f3028697..065469736579253f50c44b57c55730da2d518617 100644 (file)
@@ -13,6 +13,24 @@ ENDIF(ITK_FOUND)
 FIND_PACKAGE(VTK REQUIRED)
 IF(VTK_FOUND)
   INCLUDE("${VTK_USE_FILE}")
+  IF(VTK_VERSION VERSION_LESS 5.8.0)
+    SET ( VTK_LIBRARIES
+      vtkCommon
+      vtkRendering
+      vtkIO
+      vtkFiltering
+      vtkGraphics
+      vtkWidgets
+      vtkImaging
+      vtkHybrid
+      )
+  ENDIF(VTK_VERSION VERSION_LESS 5.8.0)
+  IF(VTK_VERSION VERSION_LESS 5.6.0)
+    SET ( VTK_LIBRARIES
+      ${VTK_LIBRARIES}
+      vtkQVTK
+    )
+  ENDIF(VTK_VERSION VERSION_LESS 5.6.0)
 ELSE(VTK_FOUND)
   MESSAGE(FATAL_ERROR "Please set VTK_DIR.")
 ENDIF(VTK_FOUND)