X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FCMakeLists.txt;h=1bbf6365b20f3349a5c97609eb53975c326343d5;hb=ead1ddd3fcdebedc60b1f24c59a1892a7a2da2df;hp=d97a4c6ef13bac04be241c2a92ffc93104b91118;hpb=22234afce4e4a326a065e3b9cd4aacc28bb4437e;p=gdcm.git diff --git a/Testing/CMakeLists.txt b/Testing/CMakeLists.txt index d97a4c6e..1bbf6365 100644 --- a/Testing/CMakeLists.txt +++ b/Testing/CMakeLists.txt @@ -27,6 +27,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 @@ -129,17 +130,21 @@ 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, untill 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" ) -# Don't understand why jasper is segfaulting with borland...I bet a borland bug -IF(BORLAND) - SET(BLACK_LIST - ${BLACK_LIST} - "D_CLUNIE_CT1_J2KR.dcm" - "D_CLUNIE_CT1_J2KI.dcm" - ) -ENDIF(BORLAND) - # Create a specific list of dicom files that we know are part of a sequence SET(SEQ_LIST "SIEMENS_MAGNETOM-12-MONO2-FileSeq[0-9].dcm" @@ -177,3 +182,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) + + +