<div dir="ltr">Thanks for that Bill. I'll have a good look at it, it may be just what I need.<div><br></div><div>Regards</div><div> Andrew</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Nov 3, 2013 at 11:31 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Andrew,<br>
<br>
The script Utilities/Maintenance/WhatModulesVTK.py generates a<br>
FindPackage(VTK COMPONENTS) that lists all modules referenced by a set<br>
of files<br>
<br>
I ran this on the VTK Examples a while back. For example look at:<br>
Examples/Modelling/Cxx/CMakeLists.txt<br>
<br>
Is this what you had in mind?<br>
<br>
Bill<br>
<div><div class="h5"><br>
On Sat, Nov 2, 2013 at 11:49 PM, Andrew Maclean<br>
<<a href="mailto:andrew.amaclean@gmail.com">andrew.amaclean@gmail.com</a>> wrote:<br>
> Has anyone written e.g. a Python script which, when given a list of modules,<br>
> will return the minimal set of modules that that spans all those modules?<br>
><br>
> For example a module like vtkIOInfovis automatically has these dependencies:<br>
> vtkCommonDataModel<br>
> vtkCommonSystem<br>
> vtkCommonMisc<br>
> vtkIOCore<br>
> vtkIOLegacy<br>
> vtkInfovisCore<br>
><br>
> so when using find_package(VTK COMPONENTS ... ) we can leave out those<br>
> modules if vtkIOInfovis has been included.<br>
><br>
> The main reason that I am asking is that I am working on the Examples and<br>
> refactoring the CMakeLists.txt files so that just the required modules will<br>
> be included.<br>
><br>
> We should be taking account of the modular structure of VTK!<br>
><br>
> If no one has written anything I will probably do it.<br>
><br>
> Regards<br>
> Andrew<br>
><br>
> --<br>
> ___________________________________________<br>
> Andrew J. P. Maclean<br>
><br>
> ___________________________________________<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Unpaid intern in BillsBasement at noware dot com<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________
</div>