CMakeLists.txt 759 Bytes
Newer Older
Bill Lorensen's avatar
Bill Lorensen committed
1
cmake_minimum_required(VERSION 2.8.5 FATAL_ERROR)
2 3 4
if(POLICY CMP0025)
  cmake_policy(SET CMP0025 NEW) # CMake 3.0
endif()
Bill Lorensen's avatar
Bill Lorensen committed
5

6 7
PROJECT(ImageProcessing)

8 9 10 11 12 13 14
find_package(VTK COMPONENTS
  vtkIOImage
  vtkImagingCore
  vtkInteractionStyle
  vtkRenderingOpenGL
  vtkTestingRendering
)
Bill Lorensen's avatar
Bill Lorensen committed
15
include(${VTK_USE_FILE})
16

Bill Lorensen's avatar
Bill Lorensen committed
17 18
add_executable(ImageSlicing MACOSX_BUNDLE ImageSlicing.cxx)
target_link_libraries(ImageSlicing ${VTK_LIBRARIES})
19

20 21 22 23
if(BUILD_TESTING)
  if(vtkTestingRendering_LOADED)
   ######## Regression Testing ########
   set(vtk-example ImageProcessingExamples)
24
   set(TestImageSlicing_ARGS ${VTK_TEST_DATA_DIR}/Data/headsq/quarter)
25 26 27 28 29
   vtk_add_test_cxx(
     TestImageSlicing.cxx
     )
   vtk_test_cxx_executable(${vtk-example}CxxTests RENDERING_FACTORY)
 endif()
Bill Lorensen's avatar
Bill Lorensen committed
30
endif()