<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hi Filippo,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">you can list just the modules you want. Here is an example snippet from CMakeLists.txt:</div><div class="gmail_default" style="font-size:small"><div class="gmail_default"><font face="monospace, monospace">set(ITK_COMPONENTS</font></div><div class="gmail_default"><font face="monospace, monospace"> ITKIOImageBase</font></div><div class="gmail_default"><font face="monospace, monospace"> ITKSmoothing</font></div><div class="gmail_default"><font face="monospace, monospace"> ITKTransform</font></div><div class="gmail_default"><font face="monospace, monospace"> ITKIOTransformBase</font></div><div class="gmail_default"><font face="monospace, monospace"> ITKIOTransformInsightLegacy # .tfm format</font></div><div class="gmail_default"><font face="monospace, monospace"> ITKIOMeta</font></div><div class="gmail_default"><font face="monospace, monospace"> ITKIONRRD</font></div><div class="gmail_default"><font face="monospace, monospace"> ITKIOPNG</font></div><div class="gmail_default"><font face="monospace, monospace"> ITKIOTIFF</font></div><div class="gmail_default"><font face="monospace, monospace"> )</font></div><div class="gmail_default"><font face="monospace, monospace">find_package(ITK COMPONENTS ${ITK_COMPONENTS} REQUIRED) # using just a subset of IO modules cuts down exe file size</font></div><div class="gmail_default"><font face="monospace, monospace">#find_package(ITK COMPONENTS REQUIRED) # alternative: all components</font></div><div class="gmail_default"><font face="monospace, monospace">include(${ITK_USE_FILE})</font></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Hope this helps,</div><div class="gmail_default" style="font-family:verdana,sans-serif">Dženan</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 13, 2017 at 8:05 AM, Filippo Brogi <span dir="ltr"><<a href="mailto:filippo.brogi@topic.nl" target="_blank">filippo.brogi@topic.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
I know that using cmake the Factory Registration is going to automatically<br>
all the modules, that is basically going to created dependencies on all the<br>
module.<br>
<br>
Is there a way to initializes only the modules really used in the software.<br>
In my application for instance I'm only using the GDCMImageIO module, but<br>
when I release the software I have dependencies also on<br>
<br>
ITKIOBioRad-4.9<br>
ITKIOBMP-4.9<br>
ITKIOJPEG-4.9<br>
ITKIOGE-4.9<br>
etc..<br>
<br>
Thanks in advance!<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://itk-users.7.n7.nabble.com/Registering-IO-factories-tp37988.html" rel="noreferrer" target="_blank">http://itk-users.7.n7.nabble.<wbr>com/Registering-IO-factories-<wbr>tp37988.html</a><br>
Sent from the ITK - Users mailing list archive at Nabble.com.<br>
______________________________<wbr>_______<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_<wbr>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/insight-users</a><br>
</blockquote></div><br></div>