[Insight-developers] ITK modularization & linking against sub-sets

Hauke Heibel hauke.heibel at googlemail.com
Thu Apr 7 09:26:42 EDT 2011


Hi Bard,

thanks for the info.

On Thu, Apr 7, 2011 at 3:16 PM, Brad King <brad.king at kitware.com> wrote:
> FYI, if you build and install both release and a debug build with a
> suffix into the same install tree then the IMPORTED targets you get
> when loading ITKConfig.cmake will handle the configuration automatically.
> You can just say
>
>  target_link_libraries(mytarget Some-ITK-Target)
>
> and CMake will generate the right thing in each configuration.  Look
> at the globbing at the bottom of ITKTargets.cmake in the install tree
> to see how it works.

This is exactly what I am doing right now. I just thought it was not
possible in the past. While browsing through the config files this
jumped to my eyes and I switched right away.

Regards,
Hauke


More information about the Insight-developers mailing list