itk_module_test()
set(ITKIOLSMTests itkLSMImageIOTest.cxx)

createtestdriver(ITKIOLSM "${ITKIOLSM-Test_LIBRARIES}" "${ITKIOLSMTests}")

itk_add_test(
  NAME
  itkLSMImageIOTest
  COMMAND
  ITKIOLSMTestDriver
  --ignoreInputInformation
  --compareCoordinateTolerance
  1.0e-6
  --compareDirectionTolerance
  1.0e-6 # flags added to verify that they are available
  --compare
  DATA{${ITK_DATA_ROOT}/Baseline/IO/cthead1.tif}
  ${ITK_TEST_OUTPUT_DIR}/itkLSMImageIOTest_cthead1.tif
  itkLSMImageIOTest
  DATA{${ITK_DATA_ROOT}/Input/cthead1.lsm}
  ${ITK_TEST_OUTPUT_DIR}/itkLSMImageIOTest_cthead1.tif)
