]> Creatis software - clitk.git/blobdiff - cmake/dependencies.cmake
Adapt CMakeLists to include it from other projects
[clitk.git] / cmake / dependencies.cmake
index 225ddccb1bdba22c30df0354347852f2f3028697..078c5a4de21d50e1839019a5e469c3bf8789d4f6 100644 (file)
@@ -13,6 +13,18 @@ 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)
 ELSE(VTK_FOUND)
   MESSAGE(FATAL_ERROR "Please set VTK_DIR.")
 ENDIF(VTK_FOUND)