#-----------------------------------------------------------------------------
# DOH! python is not found by default
FIND_PROGRAM(PYTHON_EXECUTABLE
- NAMES python python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5
+ NAMES python python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5
PATHS
+ [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.5\\InstallPath]
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.4\\InstallPath]
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.3\\InstallPath]
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.2\\InstallPath]
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")
${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