]> Creatis software - gdcm.git/blobdiff - gdcmPython/demo/CMakeLists.txt
To allow testsuite go on.
[gdcm.git] / gdcmPython / demo / CMakeLists.txt
index 23320d75f633ce23b61deed51f25438448553cc8..eaae23a84fd9853c42c3f0c0aa52322c8a310768 100644 (file)
@@ -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")
@@ -48,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)
@@ -74,8 +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)
 
 #-----------------------------------------------------------------------------
-INSTALL_FILES(/lib/gdcm/gdcmPython/demo "\\.py$")