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:<div><div><br></div><div>project(Example)</div><div><br></div><div>

cmake_minimum_required(VERSION 2.8)</div><div><br></div><div>find_package(VTK REQUIRED COMPONENTS vtkFiltersGeometry NO_MODULE)</div><div>set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${VTK_CMAKE_DIR})</div><div><br></div>
<div>
include(vtkExternalModuleMacros)</div><div>include(module.cmake)</div><div><br></div><div>set(Module_SRCS</div><div>  vtkExample.cxx</div><div>  )</div><div><br></div><div><div>vtk_module_library(vtkExample)</div></div><div>

<div><br><br><div class="gmail_quote">On Fri, Sep 14, 2012 at 12:35 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 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>
<div class="im">> <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>
</div>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>
<span class="HOEnZb"><font color="#888888"><br>
        David<br>
</font></span><div class="HOEnZb"><div class="h5"><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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Robert Maynard<br>
</div></div></div>