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

From KitwarePublic
Jump to navigationJump to search
(Recommended formatting for .cmake file)
No edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 4: Line 4:
set(DOCUMENTATION "This module contains the central classes of foo-related algorithms ...")
set(DOCUMENTATION "This module contains the central classes of foo-related algorithms ...")


# itk_module() defines the module dependencies in ITK-Foo
# itk_module() defines the module dependencies in ITKFoo
# ITK-Foo depends on ITK-Common
# ITKFoo depends on ITKCommon
# The testing module in ITK-Foo depends on ITK-TestKernel and ITK-Statistics(besides ITK-Foo)
# The testing module in ITKFoo depends on ITKTestKernel and ITKStatistics(besides ITK-Foo)


itk_module(ITK-Foo
itk_module(ITKFoo
   DEPENDS
   DEPENDS
     ITK-Common
     ITKCommon
   TEST_DEPENDS
   TEST_DEPENDS
     ITK-TestKernel
     ITKTestKernel
     ITK-Statistics
     ITKStatistics
   DESCRIPTION
   DESCRIPTION
     "${DOCUMENTATION}"
     "${DOCUMENTATION}"
)
)


#extra test dependency on ITK-Statistics introduced by itkStatisticalFooTest.
# Extra test dependency on ITKStatistics introduced by itkStatisticalFooTest.


|lang=cmake}}
|lang=cmake}}

Latest revision as of 16:31, 14 July 2012

<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>