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
+ #TestAllEntryVerify.cxx # includes generated gdcmDataImages.h
TestAllReadCompareDicom.cxx # includes generated gdcmDataImages.h
TestReadWriteReadCompare.cxx # includes generated gdcmDataImages.h
#TestCopyDicom.cxx # includes generated gdcmDataImages.h
#
# 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.
+ # 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"
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)
+
+
+