ITK/Release 4/Modularization/Add a module/test/CMakeLists.txt: Difference between revisions
From KitwarePublic
< ITK | Release 4 | Modularization
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
itk_module_test() # this macro takes care of the test module( | itk_module_test() # this macro takes care of the test module(ITKFooTest)'s dependencies | ||
set( | set(ITKFooTests | ||
itkFooHeaderTest.cxx # each module has a header test | itkFooHeaderTest.cxx # each module has a header test | ||
itkFooImageFilterTest.cxx | itkFooImageFilterTest.cxx | ||
) | ) | ||
CreateTestDriver(ITK-Foo "${ | CreateTestDriver(ITK-Foo "${ITKFooTest_LIBRARIES}" "${ITKFooTests}") # ${ITKFooTest_LIBRARIES} is defined in function call itk_module_test() | ||
itk_add_test(NAME itkFooHeaderTest | itk_add_test(NAME itkFooHeaderTest | ||
COMMAND | COMMAND ITKFastMarchingTestDriver itkFastMarchingHeaderTest) | ||
itk_add_test(NAME itkFooImageFilterTest | itk_add_test(NAME itkFooImageFilterTest | ||
COMMAND | COMMAND ITKFooTestDriver itkFooImageFilterTest) |
Revision as of 15:38, 20 July 2011
itk_module_test() # this macro takes care of the test module(ITKFooTest)'s dependencies set(ITKFooTests itkFooHeaderTest.cxx # each module has a header test itkFooImageFilterTest.cxx ) CreateTestDriver(ITK-Foo "${ITKFooTest_LIBRARIES}" "${ITKFooTests}") # ${ITKFooTest_LIBRARIES} is defined in function call itk_module_test() itk_add_test(NAME itkFooHeaderTest COMMAND ITKFastMarchingTestDriver itkFastMarchingHeaderTest) itk_add_test(NAME itkFooImageFilterTest COMMAND ITKFooTestDriver itkFooImageFilterTest)