[vtk-developers] New wiki pages on VTK 6 build system migration and module development

David Thompson david.thompson at kitware.com
Fri Sep 14 16:19:01 EDT 2012


Hi all,

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.

It took me a few minutes to realize that vtkExternalModuleMacros is still under review in Gerrit:

  http://review.source.kitware.com/#/t/1264/

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).

	Thanks,
	David

> 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:
> 
> project(Example)
> 
> cmake_minimum_required(VERSION 2.8)
> 
> find_package(VTK REQUIRED COMPONENTS vtkFiltersGeometry NO_MODULE)
> set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${VTK_CMAKE_DIR})
> 
> include(vtkExternalModuleMacros)
> include(module.cmake)
> 
> set(Module_SRCS
>   vtkExample.cxx
>   )
> 
> vtk_module_library(vtkExample)
> 
> 
> On Fri, Sep 14, 2012 at 12:35 PM, David Thompson <david.thompson at kitware.com> wrote:
> Hi Marcus,
> 
> > I have spent some time writing a couple of new wiki pages...
> >
> > http://vtk.org/Wiki/VTK/Build_System_Migration
> > http://vtk.org/Wiki/VTK/Module_Development
> >
> > Neither are entirely complete yet, but in the spirit of open source I
> > wanted to release early and get feedback as I complete them.
> 
> 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?
> 
> It would be really nice to have, especially if the libraries need to be wrapped or include object factory overrides.
> 
>         David
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
> 
> 
> 
> 
> -- 
> Robert Maynard




More information about the vtk-developers mailing list