X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FCMakeLists.txt;h=fb86ee41ca3069247ca29a8b8bb246eba8df8319;hb=ab3dc69a71af640fa49cbd917272d9ff7d1651b6;hp=f18303c52bb38acd834e486d5594ac7d06085532;hpb=e6ff7dc295436e9463650ea13ab965ce35ae126c;p=gdcm.git diff --git a/Testing/CMakeLists.txt b/Testing/CMakeLists.txt index f18303c5..fb86ee41 100644 --- a/Testing/CMakeLists.txt +++ b/Testing/CMakeLists.txt @@ -12,6 +12,7 @@ SET(TEST_SOURCES TestHash.cxx TestTS.cxx TestVR.cxx + TestDicomDirElement.cxx TestUtil.cxx TestDicomString.cxx TestDict.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}\",")