]> Creatis software - gdcm.git/blobdiff - gdcmPython/CMakeLists.txt
* Fix compilation error for the Python part
[gdcm.git] / gdcmPython / CMakeLists.txt
index 05cbd21872b4dc041a550261cc3ac671ccfeed17..e1209af0aecda5eb4a6d89403faeadf8eef34883 100644 (file)
@@ -14,6 +14,7 @@ INCLUDE_DIRECTORIES(
 
 # We need to pass that to swig to be sure all modules are generated in the proper dir
 SET(CMAKE_SWIG_FLAGS "-outdir \"${GDCM_BINARY_DIR}/gdcmPython\"")
+#SET(CMAKE_SWIG_OUTDIR "${GDCM_BINARY_DIR}/gdcmPython")
 # Looks like a bug to me in cmake 2.0.x:
 SEPARATE_ARGUMENTS(CMAKE_SWIG_FLAGS)
 
@@ -133,17 +134,17 @@ 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 "gdcmPython.pth")
+  INSTALL_FILES(/lib/gdcm/gdcmPython "\\.py$")
+  INSTALL_FILES(/lib/gdcm/gdcmPython FILES "gdcm.py")
 ENDIF(UNIX)
 
 #-----------------------------------------------------------------------------