X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=gdcmPython%2FCMakeLists.txt;h=ba6957394782755a5969540ee17088996ffde128;hb=5b4a76f5a670626f5ae20714d265b3a50ffa2218;hp=e1bdef88ab9147b782986b3d41dc54c1e60bc8d1;hpb=53d0b05d5352bf967f0e43cd58b7b190b6479794;p=gdcm.git diff --git a/gdcmPython/CMakeLists.txt b/gdcmPython/CMakeLists.txt index e1bdef88..ba695739 100644 --- a/gdcmPython/CMakeLists.txt +++ b/gdcmPython/CMakeLists.txt @@ -134,17 +134,24 @@ 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 - /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") + 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) #-----------------------------------------------------------------------------