]> Creatis software - gdcm.git/blobdiff - Testing/CMakeLists.txt
Two ;; at end of line can cause troubles
[gdcm.git] / Testing / CMakeLists.txt
index 4c3255bbc087580fb8f309b51421b28adecb093f..994e37bef00776e6ab8ba43c81b797afc6294562 100644 (file)
@@ -129,6 +129,19 @@ 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"
   )
 
 # Create a specific list of dicom files that we know are part of a sequence
@@ -168,3 +181,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)
+
+
+