[ITK-users] Registering IO factories
Dženan Zukić
dzenanz at gmail.com
Mon Mar 13 09:05:32 EDT 2017
Hi Filippo,
you can list just the modules you want. Here is an example snippet from
CMakeLists.txt:
set(ITK_COMPONENTS
ITKIOImageBase
ITKSmoothing
ITKTransform
ITKIOTransformBase
ITKIOTransformInsightLegacy # .tfm format
ITKIOMeta
ITKIONRRD
ITKIOPNG
ITKIOTIFF
)
find_package(ITK COMPONENTS ${ITK_COMPONENTS} REQUIRED) # using just a
subset of IO modules cuts down exe file size
#find_package(ITK COMPONENTS REQUIRED) # alternative: all components
include(${ITK_USE_FILE})
Hope this helps,
Dženan
On Mon, Mar 13, 2017 at 8:05 AM, Filippo Brogi <filippo.brogi at topic.nl>
wrote:
> Hi all,
> I know that using cmake the Factory Registration is going to automatically
> all the modules, that is basically going to created dependencies on all the
> module.
>
> Is there a way to initializes only the modules really used in the software.
> In my application for instance I'm only using the GDCMImageIO module, but
> when I release the software I have dependencies also on
>
> ITKIOBioRad-4.9
> ITKIOBMP-4.9
> ITKIOJPEG-4.9
> ITKIOGE-4.9
> etc..
>
> Thanks in advance!
>
>
>
>
> --
> View this message in context: http://itk-users.7.n7.nabble.
> com/Registering-IO-factories-tp37988.html
> Sent from the ITK - Users mailing list archive at Nabble.com.
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20170313/95ddcf1e/attachment.html>
More information about the Insight-users
mailing list