fvpolpeta / devide

Automatically exported from code.google.com/p/devide
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

vtk 5.8 VTKConfig.cmake in DeVIDE 12.2.7 has to be modified for compilation of VTK C++ on Linux #220

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Due to changes in vtk 5.8 cmake setup (see e.g. 
http://www.vtk.org/pipermail/vtk-developers/2010-November/008913.html ) you 
have to copy the two lines for VTK_PYTHON_LIBRARY and VTK_PYTHON_INCLUDE in the 
VTKConfig.cmake to PYTHON_LIBRARY AND PYTHON_INCLUDE, so that the compilation 
of external python-wrapped VTK C++ modules work.

Original issue reported on code.google.com by cpbotha on 21 Feb 2012 at 1:21

GoogleCodeExporter commented 9 years ago
Actually, the better solution is to add
{{{
INCLUDE_DIRECTORIES("${VTK_PYTHON_INCLUDE_DIR}")
}}}
to the VTK_WRAP_PYTHON clause in your external python-wrapped C++ module's 
CMakeLists.txt file. See for example this change I made to vtk4307: 
http://code.google.com/p/in4307/source/detail?r=20

This way, your kits use the Python shipping with and used by the DRE's VTK.

Original comment by cpbotha on 21 Feb 2012 at 2:40