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

Robert Maynard robert.maynard at kitware.com
Fri Sep 14 13:36:22 EDT 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20120914/f0c5cb64/attachment.html>


More information about the vtk-developers mailing list