+# Install a python path file in site-packages that tells
+# python where to find the gdcmPython module
+IF(UNIX)
+ FIND_PATH(PYTHON_DIR "site-packages"
+ /usr/lib/python2.4
+ /usr/lib/python2.3
+ /usr/lib/python2.2
+ /usr/lib/python2.1
+ )
+ STRING(REGEX REPLACE "/usr" "" PYTHON_DIR ${PYTHON_DIR})
+
+ INSTALL_FILES(${PYTHON_DIR}/site-packages FILES
+ "${GDCM_BINARY_DIR}/gdcmPython/gdcmPython.pth"
+ )
+ INSTALL_FILES(/lib/gdcm/gdcmPython FILES
+ "gdcm.py"
+ "__init__.py"
+ "gdcmVersion.py"
+ "core.py"
+ "vtk.py"
+ )
+ENDIF(UNIX)