From: bellet Date: Tue, 11 Oct 2005 13:06:32 +0000 (+0000) Subject: * CMakeLists.txt : install the pth file in the right place. X-Git-Tag: Version1.2.bp~28 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=55659173e732ba10873db1b8c32fc18de9bea0ff;p=gdcm.git * CMakeLists.txt : install the pth file in the right place. --- diff --git a/gdcmPython/CMakeLists.txt b/gdcmPython/CMakeLists.txt index 09239fdd..0f73e8f4 100644 --- a/gdcmPython/CMakeLists.txt +++ b/gdcmPython/CMakeLists.txt @@ -130,6 +130,15 @@ ELSE(WIN32) ) ENDIF(WIN32) +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 "gdcmPython.pth") INSTALL_FILES(/lib/gdcm/gdcmPython "\\.py$") INSTALL_FILES(/lib/gdcm/gdcmPython FILES "gdcm.py")