Skip to content

FindNeededModules.py a replacement for WhatModulesVTK.py

Andrew Maclean requested to merge amaclean/vtk:ADD_FindNeededModules into master

It uses modules.json and the users source files to generate a find_package(VTK COMPONENTS ...) command listing all the vtk modules needed by the C++ source and header files in their code.

If it is unable to find modules for the users headers then a list of these, along with the files they are in, is produced so they can manually add the corresponding modules or rebuild VTK to include the missing modules.

They will need to manually add any third-party modules (if used) to the find_package command.

Edited by Andrew Maclean

Merge request reports