]> Creatis software - gdcm.git/blobdiff - Testing/CMakeLists.txt
Update News
[gdcm.git] / Testing / CMakeLists.txt
index f18303c52bb38acd834e486d5594ac7d06085532..42b6ba0822abc6523d41efb0b4c808436cd211ac 100644 (file)
@@ -8,11 +8,12 @@ SET(GDCM_TESTS ${CXX_TEST_PATH}/gdcmTests)
 # add test that does not require data:
 # They usally return if no argument is given
 SET(TEST_SOURCES
+  TestUtil.cxx
   TestBug.cxx
   TestHash.cxx
   TestTS.cxx
   TestVR.cxx
-  TestUtil.cxx
+  TestDicomDirElement.cxx
   TestDicomString.cxx
   TestDict.cxx
   TestWriteSimple.cxx
@@ -151,10 +152,17 @@ SET(BLACK_LIST
   "PET-cardio-Multiframe-Papyrus.dcm" 
   )
 
+
+# Add a special test that requires dciodvfy from dicom3tools
+INCLUDE(${GDCM_SOURCE_DIR}/FindDicom3Tools.cmake)
+
 # This is a GLOB expression, change it into a list separated with a comma and \n
 SET(GDCM_DATA_IMAGES)
 FOREACH(filename ${GDCM_DATA_IMAGES_GLOB})
   GET_FILENAME_COMPONENT(filename_temp ${filename} NAME)
+  IF(DCIODVFY_FOUND)
+    ADD_TEST("Clunie-${filename_temp}" "${DCIODVFY_EXECUTABLE}" "${filename}")
+  ENDIF(DCIODVFY_FOUND)
   STRING(REGEX MATCH ${filename_temp} bad_dicom ${BLACK_LIST})
   IF(NOT bad_dicom)
     SET(GDCM_DATA_IMAGES "${GDCM_DATA_IMAGES}\n\"${filename_temp}\",")