0

I see there is a struggle with including a VTK to the C++ project and I wonder, if it can be done more elegant way. Routine work should be automated, right? All examples I've found consist of two stages:

  1. Include necessary vtk header files in the code.
  2. Link them as libraries in CMakeFiles.txt by find_package( VTK ..."many things" )

You can get the idea how it looks like from here (CylinderExample).

In the same post there is a suggestion to use a FindNeededModules.py to create a module list - and to be honest I have not figured out how to use it.

Anyway, is there a reasonable way to run this script on the code and automatically generate the VTK COMPONENTS list during CMake Configure stage?

0 Answers0