[Insight-developers] Compiling applications outside Insight tree

Luis Ibanez luis . ibanez at kitware . com
Wed, 28 Aug 2002 08:52:19 -0400


Hi Sayan,

itkpng.lib and MetaIO are included because
their IO factories are registered by the default.
This makes possible to relieve users from having
to invoke:   XXXImageIOFactory.RegisterOneFactory().

That's the reason why even though you are not using
Meta objects explicitly, the libraries are required
at link time.

Maybe we could put together a CMake variable
containig the list of the minimum set of ITK libraries
that are always required. This will make the external
projects look nicer.


   Luis


===========================================

Sayan Pathak wrote:
> Hi Luis,
> Thanks, That did help me to get over that particular barrier. But then it asks about itkpng.lib. When that is included it asks for MetaIO.lib and so on. Eventhough I am not using any MetaIO objects. 
> It looks like Aljaz's fix of including all possible libraries (the ones I need and the ones I don't) is the way out. I prefer the old way though where only the ones I need were specified.
> 
> Sayan
> 
>