From: bellet Date: Tue, 11 Oct 2005 18:00:05 +0000 (+0000) Subject: * gdcmPython/CMakeList.txt : the previous patch was unix-specific X-Git-Tag: Version1.2.bp~20 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=8d6b331eb83c1633ce71b258ec72ce397ecfddaa;p=gdcm.git * gdcmPython/CMakeList.txt : the previous patch was unix-specific --- diff --git a/gdcmPython/CMakeLists.txt b/gdcmPython/CMakeLists.txt index 0f73e8f4..05cbd218 100644 --- a/gdcmPython/CMakeLists.txt +++ b/gdcmPython/CMakeLists.txt @@ -130,6 +130,9 @@ ELSE(WIN32) ) ENDIF(WIN32) +# 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 @@ -141,6 +144,7 @@ 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") +ENDIF(UNIX) #----------------------------------------------------------------------------- # Add test from demo subdir: