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.)<br><br>
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?<br><br>Pat<br><br><div class="gmail_quote">On Fri, Mar 30, 2012 at 7:28 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think if you use VTK_LIBRARIES in your target_link_libraries<br>
everything should be OK. With ITK modular, applications use<br>
ITK_LIBRARIES without problems for both ITKv3 and ITKv4.<br>
<div><div class="h5"><br>
On Fri, Mar 30, 2012 at 4:19 PM, Pat Marion <<a href="mailto:pat.marion@kitware.com">pat.marion@kitware.com</a>> wrote:<br>
> Hi,<br>
><br>
> It seems fairly straightforward to have a project support vtk 5 and vtk 6,<br>
> but what about cmake code that can support both vtk and vtk modular? Any<br>
> examples of what that might look like?<br>
><br>
> The reason I ask is... PCL uses VTK on the desktop, but what if I want to<br>
> use VTK+VES for PCL on mobile. Then the PCL cmake system should know how<br>
> to use vtk modular, since VES uses vtk modular.<br>
><br>
> Pat<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <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>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Unpaid intern in BillsBasement at noware dot com<br>
</font></span></blockquote></div><br>