ITK/Release 4/Modularization/Add a module/itk-module.cmake: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
{{#tag:syntaxhighlight
|


set(DOCUMENTATION "This module contains the central classes of the Foo related algorithms ...")
set(DOCUMENTATION "This module contains the central classes of the Foo related algorithms ...")
# itk_module() defines the module dependencies in ITK-Foo
# ITK-Foo depends on ITK-Common
# 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}")
itk_module(ITK-Foo DEPENDS ITK-Common TEST_DEPENDS ITK-TestKernel ITK-Statistics DESCRIPTION "${DOCUMENTATION}")
Line 6: Line 12:
#extra test dependency on ITK-Statistics introduced by itkStatisticalFooTest.
#extra test dependency on ITK-Statistics introduced by itkStatisticalFooTest.


 
|lang=cmake}}
 
  # itk_module() defines the module dependencies in ITK-Foo
  # ITK-Foo depends on ITK-Common
  # The testing module in ITK-Foo depends on ITK-TestKernel and ITK-Statistics(besides ITK-Foo)

Revision as of 14:48, 19 June 2011

<syntaxhighlight lang="cmake">

set(DOCUMENTATION "This module contains the central classes of the 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>