]> Creatis software - gdcm.git/blobdiff - Testing/CMakeLists.txt
* FIX : now, the DocEntries are all deleted in the gdcmElementSet.
[gdcm.git] / Testing / CMakeLists.txt
index fa3a96bd7cd8bcb7d48aea301067817ff4416a8b..d53cbc71e940dd1b6961f58993d87ce8e359ea1d 100644 (file)
@@ -12,6 +12,7 @@ SET(TEST_SOURCES
   TestHash.cxx
   TestTS.cxx
   TestVR.cxx
+  TestUtil.cxx
   TestDicomString.cxx
 )
 
@@ -31,11 +32,14 @@ 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}
-      ShowDicom.cxx    
+      ShowDicom.cxx
       )
   ENDIF(GDCM_VTK)
 ENDIF (GDCM_DATA_ROOT)
@@ -115,6 +119,12 @@ SET(BLACK_LIST
   "KODAK-12-MONO1-Odd_Terminated_Sequence.dcm"
   )
 
+IF(APPLE)
+  SET(BLACK_LIST ${BLACK_LIST}
+    "SIEMENS_GBS_III-16-ACR_NEMA_1.acr"  # This image contains a wrong length
+    # Which led us to read pass the end of the file. This seg fault on MacOSX
+    )
+ENDIF(APPLE)
 
 # This is a GLOB expression, change it into a list separated with a comma and \n
 SET(GDCM_DATA_IMAGES)