]> Creatis software - bbtk.git/blobdiff - kernel/cmake/BBTKFindLibraries.cmake
*** empty log message ***
[bbtk.git] / kernel / cmake / BBTKFindLibraries.cmake
index 5a86dd340c49606eb4efe4fe44b57a751b940d38..6294b257f502fffa388cc36f3e26cc68af5b001a 100644 (file)
@@ -11,9 +11,12 @@ IF(USE_VTK)
     SET(BBTK_VTK_LIBRARIES
       #     vtkCommon 
       vtkImaging  vtkGraphics vtkRendering vtkFiltering vtkCommon vtkWidgets
+      vtkVolumeRendering
       # LG : removed vtkIO because conflict with itktiff lib in ITKIO 
       ) 
     MARK_AS_ADVANCED(VTK_DIR)
+  ELSE(VTK_FOUND)
+     message(FATAL_ERROR "VTK_DIR not found")
   ENDIF(VTK_FOUND)
 ENDIF(USE_VTK)
 #-----------------------------------------------------------------------------
@@ -89,6 +92,8 @@ IF(USE_ITK)
     IF ( itk_IMAGE_TYPE_DOUBLE ) 
       ADD_DEF( BBTK_ITK_IMAGE_TYPE_double )
     ENDIF ( itk_IMAGE_TYPE_DOUBLE )
+  ELSE(ITK_FOUND)
+     message(FATAL_ERROR "ITK_DIR not found")
   ENDIF(ITK_FOUND)
 ENDIF(USE_ITK)
 #-----------------------------------------------------------------------------