Skip to content

Commit

Permalink
Detect VTK version during configure
Browse files Browse the repository at this point in the history
  • Loading branch information
gdevenyi committed Oct 26, 2016
1 parent 9bc1866 commit f726437
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ANTS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,14 @@ if(USE_VTK)
vtkImagingStencil
vtkImagingGeneral
vtkRenderingAnnotation
vtkRenderingVolumeOpenGL
# vtkRenderingVolumeOpenGL2 # VTK7
)

if(VTK_VERSION_MAJOR GREATER 6)
find_package(VTK COMPONENTS vtkRenderingVolumeOpenGL2)
else(VTK_VERSION_MAJOR GREATER 6)
find_package(VTK COMPONENTS vtkRenderingVolumeOpenGL)
endif(VTK_VERSION_MAJOR GREATER 6)

if(VTK_FOUND)
include(${VTK_USE_FILE})
include_directories(${VTK_INCLUDE_DIRS})
Expand Down

0 comments on commit f726437

Please sign in to comment.