X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=gdcmPython%2FCMakeLists.txt;h=e25d0d95a3bae39e342c3fac140b4b7d0f53a316;hb=d7a65c97854b6ca2db3094445e9b07e5d2b665ac;hp=e1209af0aecda5eb4a6d89403faeadf8eef34883;hpb=409d1e0eb9cdfb64db19a110808f27cf054d68a6;p=gdcm.git diff --git a/gdcmPython/CMakeLists.txt b/gdcmPython/CMakeLists.txt index e1209af0..e25d0d95 100644 --- a/gdcmPython/CMakeLists.txt +++ b/gdcmPython/CMakeLists.txt @@ -2,6 +2,7 @@ INCLUDE_DIRECTORIES( ${GDCM_SOURCE_DIR}/src + ${GDCM_SOURCE_DIR}/gdcmPython ${PYTHON_INCLUDE_PATH} ${GDCM_BINARY_DIR}/ ) @@ -125,10 +126,17 @@ IF(WIN32) "${GDCM_BINARY_DIR}\n" "${GDCM_BINARY_DIR}/bin/release\n" ) + FILE(WRITE ${GDCM_BINARY_DIR}/gdcmPython/InstallOnly/gdcmPython.pth + "${GDCM_SOURCE_DIR}\n" + "${GDCM_SOURCE_DIR}/bin\n" + ) ELSE(WIN32) FILE(WRITE ${GDCM_BINARY_DIR}/gdcmPython/gdcmPython.pth "${CMAKE_INSTALL_PREFIX}/lib/gdcm\n" ) + FILE(WRITE ${GDCM_BINARY_DIR}/gdcmPython/InstallOnly/gdcmPython.pth + "/usr/lib/gdcm\n" + ) ENDIF(WIN32) # Install a python path file in site-packages that tells @@ -142,9 +150,16 @@ IF(UNIX) ) 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") + INSTALL_FILES(${PYTHON_DIR}/site-packages FILES + "${GDCM_BINARY_DIR}/gdcmPython/InstallOnly/gdcmPython.pth" + ) + INSTALL_FILES(/lib/gdcm/gdcmPython FILES + "gdcm.py" + "__init__.py" + "gdcmVersion.py" + "core.py" + "vtk.py" + ) ENDIF(UNIX) #-----------------------------------------------------------------------------