[vtk-developers] backward compatible cmake support for vtk modular

Bill Lorensen bill.lorensen at gmail.com
Fri Mar 30 19:56:24 EDT 2012


With vtk modular, it will only link to the libraries that are
required. For vtk 5, I don't see a downside. There are not that many
libraries.

On Fri, Mar 30, 2012 at 4:40 PM, Pat Marion <pat.marion at kitware.com> wrote:
> I could be wrong, but I thought that using VTK_LIBRARIES would cause your
> project to link to all vtk libraries, when you may only want to link with
> specific ones, like vtkFiltering (or vtkFiltersCore for modularized.)
>
> Also, is there is a cmake flag that can determine whether or not the vtk in
> use if modularized or not?  Perhaps just looking at the VTK version number?
>
> Pat
>
>
> On Fri, Mar 30, 2012 at 7:28 PM, Bill Lorensen <bill.lorensen at gmail.com>
> wrote:
>>
>> I think if you use VTK_LIBRARIES in your target_link_libraries
>> everything should be OK. With ITK modular, applications use
>> ITK_LIBRARIES without problems for both ITKv3 and ITKv4.
>>
>> On Fri, Mar 30, 2012 at 4:19 PM, Pat Marion <pat.marion at kitware.com>
>> wrote:
>> > Hi,
>> >
>> > It seems fairly straightforward to have a project support vtk 5 and vtk
>> > 6,
>> > but what about cmake code that can support both vtk and vtk modular?
>> > Any
>> > examples of what that might look like?
>> >
>> > The reason I ask is... PCL uses VTK on the desktop, but what if I want
>> > to
>> > use VTK+VES  for PCL on mobile.  Then the PCL cmake system should know
>> > how
>> > to use vtk modular, since VES uses vtk modular.
>> >
>> > Pat
>> >
>> > _______________________________________________
>> > 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
>> >
>> >
>>
>>
>>
>> --
>> Unpaid intern in BillsBasement at noware dot com
>
>



-- 
Unpaid intern in BillsBasement at noware dot com



More information about the vtk-developers mailing list