ITK/Release 4/Modularization/Add a module/itk-module.cmake: Difference between revisions
From KitwarePublic
< ITK | Release 4 | Modularization
Jump to navigationJump to search
Daviddoria (talk | contribs) |
No edit summary |
||
Line 8: | Line 8: | ||
# The testing module in ITK-Foo depends on ITK-TestKernel and ITK-Statistics(besides ITK-Foo) | # The testing module in ITK-Foo depends on ITK-TestKernel and ITK-Statistics(besides ITK-Foo) | ||
itk_module( | itk_module(ITKFoo | ||
DEPENDS | DEPENDS | ||
ITKCommon | |||
TEST_DEPENDS | TEST_DEPENDS | ||
ITKTestKernel | |||
ITKStatistics | |||
DESCRIPTION | DESCRIPTION | ||
"${DOCUMENTATION}" | "${DOCUMENTATION}" |
Revision as of 15:21, 14 July 2012
<syntaxhighlight lang="cmake">
set(DOCUMENTATION "This module contains the central classes of 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(ITKFoo
DEPENDS ITKCommon TEST_DEPENDS ITKTestKernel ITKStatistics DESCRIPTION "${DOCUMENTATION}"
)
- Extra test dependency on ITK-Statistics introduced by itkStatisticalFooTest.
</syntaxhighlight>