1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
PROJECT (DataManipulation)
IF(NOT VTK_BINARY_DIR)
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})
ENDIF(NOT VTK_BINARY_DIR)
ADD_EXECUTABLE(Arrays Arrays.cxx)
ADD_EXECUTABLE(Cube Cube.cxx)
ADD_EXECUTABLE(SGrid SGrid.cxx)
ADD_EXECUTABLE(RGrid RGrid.cxx)
TARGET_LINK_LIBRARIES(Arrays vtkRendering)
TARGET_LINK_LIBRARIES(Cube vtkRendering)
TARGET_LINK_LIBRARIES(SGrid vtkRendering)
TARGET_LINK_LIBRARIES(RGrid vtkRendering)
|