PROJECT(IOExamples)

ADD_EXECUTABLE(ImageReadWrite ImageReadWrite.cxx )
TARGET_LINK_LIBRARIES(ImageReadWrite ITKCommon ITKIO)

ADD_EXECUTABLE(ImageReadCastWrite ImageReadCastWrite.cxx )
TARGET_LINK_LIBRARIES(ImageReadCastWrite ITKCommon ITKIO)

ADD_EXECUTABLE(ImageReadExtractWrite ImageReadExtractWrite.cxx )
TARGET_LINK_LIBRARIES(ImageReadExtractWrite ITKCommon ITKIO)

ADD_EXECUTABLE(ImageReadRegionOfInterestWrite ImageReadRegionOfInterestWrite.cxx )
TARGET_LINK_LIBRARIES(ImageReadRegionOfInterestWrite ITKCommon ITKIO)

ADD_EXECUTABLE(RGBImageReadWrite RGBImageReadWrite.cxx )
TARGET_LINK_LIBRARIES(RGBImageReadWrite ITKCommon ITKIO)

ADD_EXECUTABLE(CovariantVectorImageWrite CovariantVectorImageWrite.cxx )
TARGET_LINK_LIBRARIES(CovariantVectorImageWrite ITKCommon ITKIO)

ADD_EXECUTABLE(CovariantVectorImageRead CovariantVectorImageRead.cxx )
TARGET_LINK_LIBRARIES(CovariantVectorImageRead ITKCommon ITKIO)

ADD_EXECUTABLE(CovariantVectorImageExtractComponent CovariantVectorImageExtractComponent.cxx )
TARGET_LINK_LIBRARIES(CovariantVectorImageExtractComponent ITKCommon ITKIO)

ADD_EXECUTABLE(VectorImageReadWrite VectorImageReadWrite.cxx )
TARGET_LINK_LIBRARIES(VectorImageReadWrite ITKCommon ITKIO)

ADD_EXECUTABLE(ImageReadExportVTK ImageReadExportVTK.cxx )
TARGET_LINK_LIBRARIES(ImageReadExportVTK ITKCommon ITKIO)

ADD_EXECUTABLE(RGBImageSeriesReadWrite RGBImageSeriesReadWrite.cxx )
TARGET_LINK_LIBRARIES(RGBImageSeriesReadWrite ITKCommon ITKIO)

ADD_EXECUTABLE(ImageSeriesReadWrite ImageSeriesReadWrite.cxx )
TARGET_LINK_LIBRARIES(ImageSeriesReadWrite ITKCommon ITKIO)

ADD_EXECUTABLE(ImageReadImageSeriesWrite ImageReadImageSeriesWrite.cxx )
TARGET_LINK_LIBRARIES(ImageReadImageSeriesWrite ITKCommon ITKIO)

ADD_EXECUTABLE(DicomSeriesReadImageWrite DicomSeriesReadImageWrite.cxx )
TARGET_LINK_LIBRARIES(DicomSeriesReadImageWrite ITKCommon ITKIO)

IF(USE_GDCM)
  INCLUDE_DIRECTORIES( ${GDCM_INCLUDE_DIR})
  ADD_EXECUTABLE(DicomSeriesReadImageWrite2 DicomSeriesReadImageWrite2.cxx )
  TARGET_LINK_LIBRARIES(DicomSeriesReadImageWrite2 ITKCommon ITKIO)
ENDIF(USE_GDCM)

ADD_EXECUTABLE(DicomPrintPatientInformation DicomPrintPatientInformation.cxx )
TARGET_LINK_LIBRARIES(DicomPrintPatientInformation ITKCommon ITKIO)

