]> Creatis software - clitk.git/commitdiff
Add vtkQVTK to VTK_LIBRARIES for old VTK
authorRomulo Pinho <romulo.pinho@lyon.unicancer.fr>
Thu, 12 Apr 2012 13:13:25 +0000 (15:13 +0200)
committerRomulo Pinho <romulo.pinho@lyon.unicancer.fr>
Thu, 12 Apr 2012 13:13:25 +0000 (15:13 +0200)
- fine tuning what to add when...

cmake/dependencies.cmake

index ebf076f277ff29a18c563c2b2ee68ee5ba451834..065469736579253f50c44b57c55730da2d518617 100644 (file)
@@ -13,7 +13,7 @@ ENDIF(ITK_FOUND)
 FIND_PACKAGE(VTK REQUIRED)
 IF(VTK_FOUND)
   INCLUDE("${VTK_USE_FILE}")
-  IF(VTK_VERSION VERSION_LESS 5.6.0)
+  IF(VTK_VERSION VERSION_LESS 5.8.0)
     SET ( VTK_LIBRARIES
       vtkCommon
       vtkRendering
@@ -23,8 +23,13 @@ IF(VTK_FOUND)
       vtkWidgets
       vtkImaging
       vtkHybrid
-      vtkQVTK
       )
+  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.")