ITK/Release 4/Modularization/Add a module/itk-module.cmake

From KitwarePublic
< ITK‎ | Release 4‎ | Modularization
Revision as of 16:31, 14 July 2012 by Matt.mccormick (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

<syntaxhighlight lang="cmake">

set(DOCUMENTATION "This module contains the central classes of foo-related algorithms ...")

  1. itk_module() defines the module dependencies in ITKFoo
  2. ITKFoo depends on ITKCommon
  3. The testing module in ITKFoo depends on ITKTestKernel and ITKStatistics(besides ITK-Foo)

itk_module(ITKFoo

 DEPENDS
   ITKCommon
 TEST_DEPENDS
   ITKTestKernel
   ITKStatistics
 DESCRIPTION
   "${DOCUMENTATION}"

)

  1. Extra test dependency on ITKStatistics introduced by itkStatisticalFooTest.

</syntaxhighlight>