[Insight-developers] Modularization, Groups, IO, NRRD, oh my!

Brad King brad.king at kitware.com
Mon Mar 28 17:14:21 EDT 2011


On 03/28/2011 02:51 PM, Daniel Blezek wrote:
> Hi,
> 
>   I did get this output.  However, the resulting ITK library would not
> read Nrrd images.
> 
>   ITKGroup_IO is not set in UseITK.cmake.  There is no way to tell from
> an external project how ITK was compiled.  (I did try to print it out
> wath a message command)

The groups are not published outside of ITK.  They are just for convenience
in enabling a bunch of related modules together.

ITKConfig.cmake provides the "ITK_MODULES_ENABLED" variable listing all
the available modules.  There is also a <mod>_LOADED variable that
indicates whether or not a given module has been loaded.

  if(NOT ITK-IO-Nrrd_LOADED)
    message(FATAL_ERROR "Build ITK with the ITK-IO-Nrrd module enabled!")
  endif()

-Brad


More information about the Insight-developers mailing list