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

From KitwarePublic
< ITK‎ | Release 4‎ | Modularization
Revision as of 17:33, 19 June 2011 by Lorensen (talk | contribs) (Recommended formatting for .cmake file)
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 ITK-Foo
  2. ITK-Foo depends on ITK-Common
  3. The testing module in ITK-Foo depends on ITK-TestKernel and ITK-Statistics(besides ITK-Foo)

itk_module(ITK-Foo

 DEPENDS
   ITK-Common
 TEST_DEPENDS
   ITK-TestKernel
   ITK-Statistics
 DESCRIPTION
   "${DOCUMENTATION}"

)

  1. extra test dependency on ITK-Statistics introduced by itkStatisticalFooTest.

</syntaxhighlight>