X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=Testing%2FCMakeLists.txt;h=a845c7479a1a91d52aeb15476f1025441dffcfc5;hb=27e8696556eff77e15a7a8fc2976ed31f882e0f1;hp=4c3255bbc087580fb8f309b51421b28adecb093f;hpb=a3e97b51b685443182e2f701c1b8cf786f25141a;p=gdcm.git diff --git a/Testing/CMakeLists.txt b/Testing/CMakeLists.txt index 4c3255bb..a845c747 100644 --- a/Testing/CMakeLists.txt +++ b/Testing/CMakeLists.txt @@ -15,6 +15,7 @@ SET(TEST_SOURCES TestVR.cxx TestDictGroupName.cxx TestDict.cxx + TestDataEntry.cxx TestWriteSimple.cxx TestImageSet.cxx TestDicomDirElement.cxx @@ -27,6 +28,7 @@ IF (GDCM_DATA_ROOT) SET(TEST_SOURCES ${TEST_SOURCES} TestFileAccessors.cxx TestMakeIcon.cxx + TestLoadAllDocumentsNoPrivNoSeq.cxx # includes generated gdcmDataImages.h TestPrintAllDocument.cxx # includes generated gdcmDataImages.h #TestAllEntryVerify.cxx # includes generated gdcmDataImages.h TestAllReadCompareDicom.cxx # includes generated gdcmDataImages.h @@ -40,6 +42,7 @@ IF (GDCM_DATA_ROOT) TestBuildUpDicomDir.cxx # writes a file named "NewDICOMDIR" TestMakeDicomDir.cxx # writes a file named "NewDICOMDIR" TestSerieHelper.cxx # uses gdcmData as a default root directory + TestAllVM.cxx ) # add test that require VTK: IF(GDCM_VTK) @@ -58,7 +61,7 @@ IF (GDCM_DATA_ROOT) INCLUDE(${VTK_USE_FILE}) INCLUDE_DIRECTORIES( - ${GDCM_SOURCE_DIR}/vtk/ + ${GDCM_SOURCE_DIR}/vtk ) SET(TEST_SOURCES ${TEST_SOURCES} VTKTestRead.cxx @@ -74,8 +77,8 @@ ENDIF (GDCM_DATA_ROOT) # include stuff INCLUDE_DIRECTORIES( - ${GDCM_SOURCE_DIR}/src/ - ${GDCM_BINARY_DIR}/ + ${GDCM_SOURCE_DIR}/src + ${GDCM_BINARY_DIR} ) CREATE_TEST_SOURCELIST(Tests gdcmTests.cxx ${TEST_SOURCES}) @@ -129,6 +132,22 @@ SET(BLACK_LIST #I wait to be 100% sure before releasing them. JP "rle16sti.dcm" "rle16loo.dcm" + # Jasper cannot handle this image, only kakadu so far, unless you patch jasper + # but then it breaks other images... + "CT_Phillips_JPEG2K_Decompr_Problem.dcm" + # + # ------------ + # + # I probabely messed up smething with the .png, .tst of + # the images I recently added to the Test Suite + # I Black list them, until I find where is the pb. + "US-RGB-8-esopecho.dcm" + "MR_Philips_Intera_No_PrivateSequenceImplicitVR.dcm" + "MR_Philips_Intera_PrivateSequenceImplicitVR.dcm" + "MR_SIEMENS_forceLoad29-1010_29-1020.dcm" + # An element contains a value of 4, but no data follows + # So, the next (group, elem) is not correctly read + "gdcm-MR-PHILIPS-16-Multi-Seq.dcm" ) # Create a specific list of dicom files that we know are part of a sequence @@ -168,3 +187,17 @@ FILE(WRITE "${GDCM_BINARY_DIR}/gdcmDataImages.h" FILE(WRITE "${GDCM_BINARY_DIR}/gdcmDataSeqImages.h" "const char * const gdcmDataSeqImages[] = { ${GDCM_DATA_SEQ_IMAGES}\n0 };\n" ) + +#----------------------------------------------------------------------------- +# Trying to solve a bizarre problem when loading shared lib if gdcm is static +# Therefore I disable the test when building SHAREDLIBS +IF(UNIX AND NOT GDCM_BUILD_SHARED_LIBS) + ADD_LIBRARY(dynmodule MODULE dynmodule.cxx) + TARGET_LINK_LIBRARIES(dynmodule gdcm) + ADD_EXECUTABLE(loadmodule loadmodule.cxx ) + TARGET_LINK_LIBRARIES(loadmodule gdcm -ldl) + ADD_TEST(loadmodule ${CXX_TEST_PATH}/loadmodule) +ENDIF(UNIX AND NOT GDCM_BUILD_SHARED_LIBS) + + +