X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FCMakeLists.txt;h=994e37bef00776e6ab8ba43c81b797afc6294562;hb=273cd97da5b40b59ad6bdde05a9e159af1d4165a;hp=82b441e4ce1f8d29ce1e1249e2f2b19c4768e771;hpb=c02de91732ece8b1c8dbd54f7eff39f55c666ff1;p=gdcm.git diff --git a/Testing/CMakeLists.txt b/Testing/CMakeLists.txt index 82b441e4..994e37be 100644 --- a/Testing/CMakeLists.txt +++ b/Testing/CMakeLists.txt @@ -28,7 +28,7 @@ IF (GDCM_DATA_ROOT) TestFileAccessors.cxx TestMakeIcon.cxx 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 @@ -181,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) + + +