X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=Testing%2FCMakeLists.txt;h=e0fae4eb319e9847a42d3ab868450c4687d1d93d;hb=977b70320ec22c560eb92d4669b26455e0842b7b;hp=c534302a3a9f976c518e0ccbd5cd69748e5e6f35;hpb=d2cc3beec731311c7774b9907e717841fc8ffde8;p=gdcm.git diff --git a/Testing/CMakeLists.txt b/Testing/CMakeLists.txt index c534302a..e0fae4eb 100644 --- a/Testing/CMakeLists.txt +++ b/Testing/CMakeLists.txt @@ -217,4 +217,21 @@ IF(UNIX AND NOT BUILD_SHARED_LIBS) ENDIF(UNIX AND NOT BUILD_SHARED_LIBS) +#----------------------------------------------------------------------------- +# Do the build against an installed gdcm +SET(GDCM_TEST_INSTALL_LEFT "${CMAKE_INSTALL_PREFIX}") +SET(GDCM_TEST_INSTALL_RIGHT "${GDCM_BINARY_DIR}/InstallTest/Root") +STRING(COMPARE EQUAL "${GDCM_TEST_INSTALL_LEFT}" "${GDCM_TEST_INSTALL_RIGHT}" + GDCM_TEST_INSTALL) +IF(GDCM_TEST_INSTALL) + ADD_TEST(Install + ${CMAKE_CTEST_COMMAND} + # ${GDCM_INSTALL_TEST_CONFIG_TYPE} + --build-and-test ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} + --build-generator ${CMAKE_GENERATOR} + --build-project GDCM + --build-makeprogram ${CMAKE_MAKE_PROGRAM} + --build-noclean + --build-target install) +ENDIF(GDCM_TEST_INSTALL)