It  hasn't been merged because I forgot to push the button.<br><br><div class="gmail_quote">On Fri, Sep 14, 2012 at 4:19 PM, David Thompson <span dir="ltr"><<a href="mailto:david.thompson@kitware.com" target="_blank">david.thompson@kitware.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
Thanks for the answers about external modules. Of the approaches mentioned, vtkExternalModuleMacros is closest to what I need (using an external VTK). I'll work to write up some notes for the wiki pages.<br>
<br>
It took me a few minutes to realize that vtkExternalModuleMacros is still under review in Gerrit:<br>
<br>
  <a href="http://review.source.kitware.com/#/t/1264/" target="_blank">http://review.source.kitware.com/#/t/1264/</a><br>
<br>
Do you have any ideas on when it might be merged to master? I fetched the changeset and it works for me but did take a little fiddling as I had Python wrapping turned on (and so I had to add vtkWrappingPython to the module.cmake dependency list manually).<br>


<br>
        Thanks,<br>
        David<br>
<div class="HOEnZb"><div class="h5"><br>
> I have been working with Marcus to be able to use an external module with a pre built version of VTK. Here is an example CMakeLists.txt that does just this:<br>
><br>
> project(Example)<br>
><br>
> cmake_minimum_required(VERSION 2.8)<br>
><br>
> find_package(VTK REQUIRED COMPONENTS vtkFiltersGeometry NO_MODULE)<br>
> set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${VTK_CMAKE_DIR})<br>
><br>
> include(vtkExternalModuleMacros)<br>
> include(module.cmake)<br>
><br>
> set(Module_SRCS<br>
>   vtkExample.cxx<br>
>   )<br>
><br>
> vtk_module_library(vtkExample)<br>
><br>
><br>
> On Fri, Sep 14, 2012 at 12:35 PM, David Thompson <<a href="mailto:david.thompson@kitware.com">david.thompson@kitware.com</a>> wrote:<br>
> Hi Marcus,<br>
><br>
> > I have spent some time writing a couple of new wiki pages...<br>
> ><br>
> > <a href="http://vtk.org/Wiki/VTK/Build_System_Migration" target="_blank">http://vtk.org/Wiki/VTK/Build_System_Migration</a><br>
> > <a href="http://vtk.org/Wiki/VTK/Module_Development" target="_blank">http://vtk.org/Wiki/VTK/Module_Development</a><br>
> ><br>
> > Neither are entirely complete yet, but in the spirit of open source I<br>
> > wanted to release early and get feedback as I complete them.<br>
><br>
> Thanks a lot for the documentation! One question I still have after reading it is whether it is possible to use the VTK module macros to create additional modules outside of VTK. For instance, if I have a project that depends on VTK and has both an application and libraries (which look like additional VTK modules to the app), can I use vtk_module() and module.cmake?<br>


><br>
> It would be really nice to have, especially if the libraries need to be wrapped or include object factory overrides.<br>
><br>
>         David<br>
><br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at <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>
><br>
><br>
> --<br>
> Robert Maynard<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Robert Maynard<br>