X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=gdcmPython%2Fdemo%2FCMakeLists.txt;h=eaae23a84fd9853c42c3f0c0aa52322c8a310768;hb=63b1baaa4ffc54e72247d80978c79456618281ce;hp=b3bde10cbae8e2db67c7cf2a9b14c45c32198f07;hpb=25c9af365d9221bd45f3fbe27275ff0f66a265b1;p=gdcm.git diff --git a/gdcmPython/demo/CMakeLists.txt b/gdcmPython/demo/CMakeLists.txt index b3bde10c..eaae23a8 100644 --- a/gdcmPython/demo/CMakeLists.txt +++ b/gdcmPython/demo/CMakeLists.txt @@ -25,6 +25,9 @@ IF(PYTHON_EXECUTABLE) ADD_TEST(Python-PrintDicomDir ${PYTHON_EXECUTABLE} ${GDCM_BINARY_DIR}/gdcmPython/demo/PrintDicomDir.py ) + ADD_TEST(Python-MakeDicomDir ${PYTHON_EXECUTABLE} + ${GDCM_BINARY_DIR}/gdcmPython/demo/PrintDicomDir.py + ) ELSE(PYTHON_EXECUTABLE) MESSAGE(FATAL_ERROR "You requested testing for python, but python was not found") @@ -33,6 +36,11 @@ ENDIF(PYTHON_EXECUTABLE) #----------------------------------------------------------------------------- # Copy all the demo directory content to the cmake bin # Without it, tests can't be launched +CONFIGURE_FILE( + ${GDCM_SOURCE_DIR}/gdcmPython/demo/gdcmConfigDemo.py.in + ${GDCM_BINARY_DIR}/gdcmPython/demo/gdcmConfigDemo.py +) + CONFIGURE_FILE( ${GDCM_SOURCE_DIR}/gdcmPython/demo/PrintFile.py.in ${GDCM_BINARY_DIR}/gdcmPython/demo/PrintFile.py @@ -43,11 +51,22 @@ CONFIGURE_FILE( ${GDCM_BINARY_DIR}/gdcmPython/demo/PrintDicomDir.py ) +CONFIGURE_FILE( + ${GDCM_SOURCE_DIR}/gdcmPython/demo/MakeDicomDir.py.in + ${GDCM_BINARY_DIR}/gdcmPython/demo/MakeDicomDir.py +) + CONFIGURE_FILE( ${GDCM_SOURCE_DIR}/gdcmPython/demo/PrintDict.py.in ${GDCM_BINARY_DIR}/gdcmPython/demo/PrintDict.py ) +INSTALL_FILES(/lib/gdcm/gdcmPython/demo FILES + "${GDCM_BINARY_DIR}/gdcmPython/demo/PrintFile.py" + "${GDCM_BINARY_DIR}/gdcmPython/demo/PrintDicomDir.py" + "${GDCM_BINARY_DIR}/gdcmPython/demo/PrintDict.py" +) + #----------------------------------------------------------------------------- # Same but for VTK IF(GDCM_VTK) @@ -69,4 +88,13 @@ IF(GDCM_VTK) ${GDCM_SOURCE_DIR}/gdcmPython/demo/vtkGdcmWriter.py.in ${GDCM_BINARY_DIR}/gdcmPython/demo/vtkGdcmWriter.py ) + + INSTALL_FILES(/lib/gdcm/gdcmPython/demo FILES + "${GDCM_BINARY_DIR}/gdcmPython/demo/vtkGdcmReader.py" + "${GDCM_BINARY_DIR}/gdcmPython/demo/vtkGdcmWriter.py" + ) + ENDIF(GDCM_VTK) + +#----------------------------------------------------------------------------- +