##=========================================================================
## 
##   Copyright (c) Kitware, Inc.
##   All rights reserved.
##   See Copyright.txt or http://www.kitware.com/VolViewCopyright.htm for details.
## 
##      This software is distributed WITHOUT ANY WARRANTY; without even
##      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
##      PURPOSE.  See the above copyright notice for more information.
## 
##=========================================================================
# TODO:
# The following files are 3d (multi frames) I am not sure what they are doing in testing
# since we do not support them...
# VolViewData/Data/Ultrasound/Osirix-Chamonix/IM-0001-0014.dcm

INCLUDE_REGULAR_EXPRESSION("^.*$")

SET(TESTS 
  DICOM
  Lib
  Queue
#  GPXReader
  ContourStatistics
  DICOMReader
  DICOMReader2
  DICOMReader3
  DICOMSeries
  DICOMDWI
  DICOMSCOUT
  DICOMSCOUT2
  )

IF(KWCommonPro_USE_XML_RW)
  SET(TESTS ${TESTS} XMLReaderWriter)
ENDIF(KWCommonPro_USE_XML_RW)

FOREACH(TEST ${TESTS})
  SET(EXE_NAME KWCommonProTest${TEST})
  ADD_EXECUTABLE(${EXE_NAME} Test${TEST}.cxx)
  TARGET_LINK_LIBRARIES(${EXE_NAME} ${KWCommonPro_LIBRARIES})
  ADD_TEST(KWCommonPro-${TEST} ${EXECUTABLE_OUTPUT_PATH}/${EXE_NAME})
ENDFOREACH(TEST)
