[vtkusers] install python module

Dominik Szczerba dominik at itis.ethz.ch
Mon Jun 13 17:30:15 EDT 2011


Hi,

I am creating my python modules like:

  VTK_WRAP_PYTHON3 (vtkmyFilteringPython FilteringPython_SRCS "${SOURCES}")
  ADD_LIBRARY (vtkmyFilteringPythonD ${FilteringPython_SRCS})
  TARGET_LINK_LIBRARIES(vtkmyFilteringPythonD vtkmyFiltering
vtkFilteringPythonD vtkImagingPythonD ${LIBS_VTKMYFILTERING})
  PYTHON_ADD_MODULE(vtkmyFilteringPython vtkmyFilteringPythonInit.cxx)
  TARGET_LINK_LIBRARIES(vtkmyFilteringPython vtkmyFilteringPythonD)

and trying to install like:

INSTALL(TARGETS vtkmyFiltering RUNTIME DESTINATION
${CMAKE_INSTALL_PREFIX}/bin LIBRARY DESTINATION
${CMAKE_INSTALL_PREFIX}/bin CONFIGURATIONS RELEASE)
INSTALL(TARGETS vtkmyFilteringPython LIBRARY DESTINATION
${CMAKE_INSTALL_PREFIX}/bin CONFIGURATIONS RELEASE)
INSTALL(TARGETS vtkmyFilteringPythonD LIBRARY DESTINATION
${CMAKE_INSTALL_PREFIX}/bin CONFIGURATIONS RELEASE)

Problem is that only vtkmyFiltering*.so files are installed, but not
the also needed libvtkmyFilteringPython* files. Is there anything
special to fully install the created module?

Regards,
Dominik



More information about the vtkusers mailing list