X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FCMakeLists.txt;h=31a77f055c67d11bee72d106a49b9f18ebba684c;hb=7840ddd7d30ebe6f20959ff3ae9e0565f723c645;hp=a77c35b0b8b05a7f3a68446983d924b996179730;hpb=81af42f8d9863c17841ab4bf11d2ae7c3fa13fcd;p=gdcm.git diff --git a/Testing/CMakeLists.txt b/Testing/CMakeLists.txt index a77c35b0..31a77f05 100644 --- a/Testing/CMakeLists.txt +++ b/Testing/CMakeLists.txt @@ -13,6 +13,7 @@ SET(TEST_SOURCES TestHash.cxx TestTS.cxx TestVR.cxx + TestDictGroupName.cxx TestDict.cxx TestWriteSimple.cxx TestImageSet.cxx @@ -26,13 +27,13 @@ IF (GDCM_DATA_ROOT) TestFileAccessors.cxx TestMakeIcon.cxx TestPrintAllDocument.cxx # includes generated gdcmDataImages.h - TestAllEntryVerify.cxx # includes generated gdcmDataImages.h + #TestAllEntryVerify.cxx # includes generated gdcmDataImages.h TestAllReadCompareDicom.cxx # includes generated gdcmDataImages.h TestReadWriteReadCompare.cxx # includes generated gdcmDataImages.h #TestCopyDicom.cxx # includes generated gdcmDataImages.h - TestCopyRescaleDicom.cxx # includes generated gdcmDataImages.h + # TestCopyRescaleDicom.cxx # includes generated gdcmDataImages.h #TestChangeHeader.cxx - TestAnonymize.cxx + # TestAnonymize.cxx TestDirList.cxx TestDicomDir.cxx # require DICOMDIR TestBuildUpDicomDir.cxx # writes a file named "NewDICOMDIR" @@ -41,18 +42,30 @@ IF (GDCM_DATA_ROOT) ) # add test that require VTK: IF(GDCM_VTK) - # Include the VTK library - INCLUDE(${VTK_USE_FILE}) - - INCLUDE_DIRECTORIES( - ${GDCM_SOURCE_DIR}/vtk/ - ) - SET(TEST_SOURCES ${TEST_SOURCES} - VTKTestRead.cxx - VTKTestReadSeq.cxx - VTKTestWrite.cxx - VTKTestWriteSeq.cxx - ) + IF("${VTK_MAJOR_VERSION}" LESS 4) + MESSAGE(FATAL_ERROR "This VTK version is not supported, you are on your own !") + ELSE("${VTK_MAJOR_VERSION}" LESS 4) + IF("${VTK_MAJOR_VERSION}" EQUAL 4 AND "${VTK_MINOR_VERSION}" EQUAL 2) + MESSAGE(FATAL_ERROR "This VTK version is not supported, you are on your own !" + "Although gdcm should compile fine. You just need to turn BUILD_TESTING:=OFF") + ENDIF("${VTK_MAJOR_VERSION}" EQUAL 4 AND "${VTK_MINOR_VERSION}" EQUAL 2) + IF("${VTK_MAJOR_VERSION}" EQUAL 4 AND "${VTK_MINOR_VERSION}" EQUAL 4 AND "${VTK_BUILD_VERSION}" LESS 3) + MESSAGE(FATAL_ERROR "This VTK version is not supported, you are on your own !" + "Although gdcm should compile fine. You just need to turn BUILD_TESTING:=OFF") + ENDIF("${VTK_MAJOR_VERSION}" EQUAL 4 AND "${VTK_MINOR_VERSION}" EQUAL 4 AND "${VTK_BUILD_VERSION}" LESS 3) + # Include the VTK library since we know this is going to work + INCLUDE(${VTK_USE_FILE}) + + INCLUDE_DIRECTORIES( + ${GDCM_SOURCE_DIR}/vtk/ + ) + SET(TEST_SOURCES ${TEST_SOURCES} + VTKTestRead.cxx + VTKTestReadSeq.cxx + VTKTestWrite.cxx + VTKTestWriteSeq.cxx + ) + ENDIF("${VTK_MAJOR_VERSION}" LESS 4) ENDIF(GDCM_VTK) ENDIF (GDCM_DATA_ROOT) @@ -149,9 +162,8 @@ SET(BLACK_LIST "D_CLUNIE_CT1_J2KI.dcm" #Not a Dicom Image, but a RT Object "RS2.16.124.113534.2.3.5.0.120040728.21342.353.12747_anonimized.dcm" - #Temporary black list LibIDO rectangular images - "LIBIDO-24-ACR_NEMA-Rectangle.dcm" - "gdcm-ACR-LibIDO.acr" + #Dicom MPEG image + "ETIAM_video_002.dcm" ) # Add a special test that requires dciodvfy from dicom3tools