X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=gdcmPython%2FCMakeLists.txt;h=4c9ebd0e7bf3d955948c3fd988ab8ef37ec44257;hb=8bf45262260369e9f9f773c5793acb4924639cc1;hp=a5a26ed797d5aea17fb315eb4c6e42dc2cf062f2;hpb=3eacdfdf6a420946ec76fd931826a0bbbcbea00a;p=gdcm.git diff --git a/gdcmPython/CMakeLists.txt b/gdcmPython/CMakeLists.txt index a5a26ed7..4c9ebd0e 100644 --- a/gdcmPython/CMakeLists.txt +++ b/gdcmPython/CMakeLists.txt @@ -22,7 +22,16 @@ IF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 1.9) #SET_SOURCE_FILES_PROPERTIES(gdcm.i PROPERTIES PYTHON ON) SET_SOURCE_FILES_PROPERTIES(gdcm.i PROPERTIES CPLUSPLUS ON) - SET_SOURCE_FILES_PROPERTIES(gdcm.i PROPERTIES SWIG_FLAGS "-includeall") + # Setting SWIG_FLAGS to "-includeall" at the following line looks like + # a bad idea since swig tries to reculsively include all the referenced + # files, "including" the C++ , , ... Of course swig + # has no way of finding the path to those files (unless it is told by + # cmake) since they are related to the compiler installation layout. + # Anyhow, since this inclusion recursion is not necessary, just don't + # do it. + # Note: apparently the line is required in order to avoid a NOTFOUND + # as argument of swig on invocation of make. + SET_SOURCE_FILES_PROPERTIES(gdcm.i PROPERTIES SWIG_FLAGS "") SWIG_ADD_MODULE(gdcm python gdcm.i) #gdcm_wrap.cxx SWIG_LINK_LIBRARIES(gdcm gdcm ${PYTHON_LIBRARIES}) @@ -184,7 +193,8 @@ IF(GDCM_VTK) vtkCommonPython vtkIOPython) ENDIF (GDCM_WRAP_PYTHON) - +ENDIF(GDCM_VTK) + # generate a setup.py according to VTK installation # put it in subdir in order to not override old one @@ -193,7 +203,6 @@ IF(GDCM_VTK) ${GDCM_SOURCE_DIR}/gdcmPython/setup.py.in ${GDCM_BINARY_DIR}/setup.py ) -ENDIF(GDCM_VTK) #----------------------------------------------------------------------------- # Install stuff: