[vtkusers] How to build with Vtk as an external project?

Lars Bilke lars.bilke at ufz.de
Mon Jul 1 11:48:08 EDT 2013


Thank you Bill for the answer!

But I would like to know a solution without using a superbuild.

Am 01.07.2013 um 17:35 schrieb Bill Lorensen <bill.lorensen at gmail.com>:

> The ITK wiki examples provide a superbuild capability. Look here:
> http://gitorious.org/itkwikiexamples/itkwikiexamples/trees/master/Superbuild
> To see the cmake files
> 
> 
> 
> On Mon, Jul 1, 2013 at 9:52 AM, Lars Bilke <lars.bilke at ufz.de> wrote:
> I am developing an application which uses VTK for the visualization. I would like to build against VTK as an external project. So I am using ExternalProject_Add() to build VTK which works fine.
> 
> But how to set include directories and link libraries in my project? I read that ExternalProject_Add and FindPackage should not be used together. But how to populate all the necessary CMake variables which I normally get when is use FindPackage.
> 
> Has anybody done this? I do not want the build my project like the ParaView superbuild. The simplest possible example would be very helpful!
> 
> Thanks in advance,
> Lars Bilke.
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 
> 
> 
> -- 
> Unpaid intern in BillsBasement at noware dot com




More information about the vtkusers mailing list