X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=cmake%2Fdependencies.cmake;h=065469736579253f50c44b57c55730da2d518617;hb=2c87c1a16f2f1656c4aeb97cccb0284a48762cf7;hp=9246eaacb3c217cc909d602a17b38fc894da18d1;hpb=c4eddfe5b0f03f35a7880aead2407e68c48f6927;p=clitk.git diff --git a/cmake/dependencies.cmake b/cmake/dependencies.cmake index 9246eaa..0654697 100644 --- a/cmake/dependencies.cmake +++ b/cmake/dependencies.cmake @@ -23,9 +23,14 @@ IF(VTK_FOUND) vtkWidgets vtkImaging vtkHybrid - QVTK ) 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) @@ -44,7 +49,6 @@ IF (${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND") # MESSAGE("Install libstatgrab (http://www.i-scream.org/libstatgrab/) for memory usage information") SET(CLITK_MEMORY_INFO OFF) ELSE (${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND") - INCLUDE_DIRECTORIES(${LIBSTATGRAB}/../include) SET(CLITK_MEMORY_INFO ON) ENDIF (${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND") #=========================================================