From 7aba6921403659f09228753f6f452f710cf18faf Mon Sep 17 00:00:00 2001 From: Romulo Pinho Date: Thu, 12 Apr 2012 15:13:25 +0200 Subject: [PATCH] Add vtkQVTK to VTK_LIBRARIES for old VTK - fine tuning what to add when... --- cmake/dependencies.cmake | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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.") -- 2.47.1