Commit 8e3b87b0 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

ENH: Fixed BUG #6222. When Python in enabled in ParaView, all of VTK python

wrappings are generated. However, note that installing paraview will not install
vtkpython execultable. Also all the python extension modules will be installed
at the same location as the libraries and not use the python disutils as it does
when one installs from VTK directly.
parent cb27c6e5
......@@ -332,10 +332,15 @@ TARGET_LINK_LIBRARIES(Xdmf
${XDMF_ZLIB_LIBRARIES})
OPTION(XDMF_WRAP_PYTHON "Build a Python wrapping interface" OFF)
IF(XDMF_WRAP_PYTHON OR VTK_WRAP_PYTHON)
SET (temp_VTK_PYTHON FALSE)
IF (VTK_WRAP_PYTHON AND NOT PARAVIEW_ENABLE_PYTHON)
SET (temp_VTK_PYTHON TRUE)
ENDIF (VTK_WRAP_PYTHON AND NOT PARAVIEW_ENABLE_PYTHON)
IF(XDMF_WRAP_PYTHON OR temp_VTK_PYTHON)
FIND_PACKAGE(PythonExecutable)
FIND_PACKAGE(PythonLibs)
ENDIF(XDMF_WRAP_PYTHON OR VTK_WRAP_PYTHON)
ENDIF(XDMF_WRAP_PYTHON OR temp_VTK_PYTHON)
IF(XDMF_WRAP_PYTHON)
IF(NOT BUILD_SHARED_LIBS)
......
......@@ -90,7 +90,8 @@ ENDIF(XDMF_BUILD_MPI)
INCLUDE(${VTK_CMAKE_DIR}/vtkWrapPython.cmake OPTIONAL)
VTK_WRAP_PYTHON2(vtk${PROJECT_NAME}Python XdmfPython_SRCS ${Xdmf_SRCS})
ADD_LIBRARY(vtk${PROJECT_NAME}Python SHARED ${XdmfPython_SRCS} ${Xdmf_SRCS})
TARGET_LINK_LIBRARIES(vtk${PROJECT_NAME}Python vtkIOPython vtkRenderingPython vtkParallelPython Xdmf)
TARGET_LINK_LIBRARIES(vtk${PROJECT_NAME}Python vtkIOPythonD
vtkRenderingPythonD vtkParallelPythonD Xdmf)
ADD_DEPENDENCIES(vtk${PROJECT_NAME}Python vtk${PROJECT_NAME})
ENDIF(VTK_WRAP_PYTHON)
IF(XDMF_BUILD_TESTING)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment