ITK/Release 4/Modularization/Add a module/itk-module.cmake: Difference between revisions
From KitwarePublic
< ITK | Release 4 | Modularization
Jump to navigationJump to search
No edit summary |
(Recommended formatting for .cmake file) |
||
Line 6: | Line 6: | ||
# itk_module() defines the module dependencies in ITK-Foo | # itk_module() defines the module dependencies in ITK-Foo | ||
# ITK-Foo depends on ITK-Common | # ITK-Foo depends on ITK-Common | ||
# The testing module in ITK-Foo depends on ITK-TestKernel and ITK- | # 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}" | |||
) | |||
#extra test dependency on ITK-Statistics introduced by itkStatisticalFooTest. | #extra test dependency on ITK-Statistics introduced by itkStatisticalFooTest. | ||
|lang=cmake}} | |lang=cmake}} |
Revision as of 17:33, 19 June 2011
<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(ITK-Foo
DEPENDS ITK-Common TEST_DEPENDS ITK-TestKernel ITK-Statistics DESCRIPTION "${DOCUMENTATION}"
)
- extra test dependency on ITK-Statistics introduced by itkStatisticalFooTest.
</syntaxhighlight>