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 |
No edit summary |
||
(2 intermediate revisions by 2 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_module() defines the module dependencies in ITKFoo | ||
# | # ITKFoo depends on ITKCommon | ||
# The testing module in | # The testing module in ITKFoo depends on ITKTestKernel and ITKStatistics(besides ITK-Foo) | ||
itk_module( | itk_module(ITKFoo | ||
DEPENDS | DEPENDS | ||
ITKCommon | |||
TEST_DEPENDS | TEST_DEPENDS | ||
ITKTestKernel | |||
ITKStatistics | |||
DESCRIPTION | DESCRIPTION | ||
"${DOCUMENTATION}" | "${DOCUMENTATION}" | ||
) | ) | ||
# Extra test dependency on | # 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 ...")
- itk_module() defines the module dependencies in ITKFoo
- ITKFoo depends on ITKCommon
- The testing module in ITKFoo depends on ITKTestKernel and ITKStatistics(besides ITK-Foo)
itk_module(ITKFoo
DEPENDS ITKCommon TEST_DEPENDS ITKTestKernel ITKStatistics DESCRIPTION "${DOCUMENTATION}"
)
- Extra test dependency on ITKStatistics introduced by itkStatisticalFooTest.
</syntaxhighlight>