CMakeLists.txt 774 Bytes
Newer Older
1 2
PROJECT(ImageProcessing)

3
IF(NOT VTK_BINARY_DIR)
4 5 6 7 8
FIND_PACKAGE(VTK REQUIRED)
IF(NOT VTK_USE_RENDERING)
  MESSAGE(FATAL_ERROR "Example ${PROJECT_NAME} requires VTK_USE_RENDERING.")
ENDIF(NOT VTK_USE_RENDERING)
INCLUDE(${VTK_USE_FILE})
9
ENDIF(NOT VTK_BINARY_DIR)
10 11 12 13

ADD_EXECUTABLE(ImageSlicing ImageSlicing.cxx)
TARGET_LINK_LIBRARIES(ImageSlicing vtkRendering vtkImaging vtkIO)

14 15 16 17
######## Regression Testing ########
SET(KIT ImageProcessingExamples)
SET(MyTests TestImageSlicing.cxx)

18
INCLUDE(vtkTestingObjectFactory)
19 20
ADD_EXECUTABLE(${KIT}CxxTests ${KIT}CxxTests.cxx
               ${MyTests})
Bill Lorensen's avatar
Bill Lorensen committed
21
TARGET_LINK_LIBRARIES(${KIT}CxxTests vtkRendering vtkIO)
22 23 24 25 26

ADD_TEST(${KIT}-ImageSlicing ${EXECUTABLE_OUTPUT_PATH}/${KIT}CxxTests
  TestImageSlicing ${VTK_DATA_ROOT}/Data/headsq/quarter)