PROJECT (Medical) 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}) ADD_EXECUTABLE(Medical1 Medical1.cxx) ADD_EXECUTABLE(Medical2 Medical2.cxx) ADD_EXECUTABLE(Medical3 Medical3.cxx) TARGET_LINK_LIBRARIES(Medical1 vtkRendering vtkIO) TARGET_LINK_LIBRARIES(Medical2 vtkRendering vtkIO) TARGET_LINK_LIBRARIES(Medical3 vtkRendering vtkIO)