From: Romulo Pinho Date: Thu, 12 Apr 2012 13:13:25 +0000 (+0200) Subject: Add vtkQVTK to VTK_LIBRARIES for old VTK X-Git-Tag: v1.3.0~52^2~4^2~1 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=7aba6921403659f09228753f6f452f710cf18faf;p=clitk.git Add vtkQVTK to VTK_LIBRARIES for old VTK - fine tuning what to add when... --- diff --git a/cmake/dependencies.cmake b/cmake/dependencies.cmake index ebf076f..0654697 100644 --- a/cmake/dependencies.cmake +++ b/cmake/dependencies.cmake @@ -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.")