
if(NOT BUILD_TESTING)
  return()
endif()

sitk_add_python_test( Example.DicomSeriesReadModifySeriesWrite
  "${CMAKE_CURRENT_SOURCE_DIR}/DicomSeriesReadModifySeriesWrite.py"
    DATA{${SimpleITK_DATA_ROOT}/Input/DicomSeries}
    ${TEST_HARNESS_TEMP_DIRECTORY}
  )


if(NOT BUILD_TESTING)
  return()
endif()

set(out_dir "${TEST_HARNESS_TEMP_DIRECTORY}/Python.DicomSeriesReadModifySeriesWrite")
file(MAKE_DIRECTORY ${out_dir})
sitk_add_python_test( Example.DicomSeriesReadModifySeriesWrite
  "${CMAKE_CURRENT_SOURCE_DIR}/DicomSeriesReadModifySeriesWrite.py"
    DATA{${SimpleITK_DATA_ROOT}/Input/DicomSeries/,REGEX:Image[0-9]+.dcm}
    "${out_dir}"
  )

Correct the CMake DATA syntax for using a series
Correct the CMake DATA syntax for using a series

Also add a sub-directory for the output of the modified DICOM series.
