From 8d6b331eb83c1633ce71b258ec72ce397ecfddaa Mon Sep 17 00:00:00 2001 From: bellet Date: Tue, 11 Oct 2005 18:00:05 +0000 Subject: [PATCH] * gdcmPython/CMakeList.txt : the previous patch was unix-specific --- gdcmPython/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) 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: -- 2.45.1