ITK/Release 4/Modularization/Add a module/test/CMakeLists.txt

From KitwarePublic
< ITK‎ | Release 4‎ | Modularization
Revision as of 19:27, 4 April 2011 by Xiaoxiao (talk | contribs) (Created page with " itk_module_test() # this macro takes care of the test module(ITK-Foo-Test)'s dependencies set(ITK-FooTests itkFooHeaderTest.cxx # each module has a header test ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
 itk_module_test() # this macro takes care of the test module(ITK-Foo-Test)'s dependencies 
 set(ITK-FooTests
     itkFooHeaderTest.cxx  # each module has a header test
     itkFooImageFilterTest.cxx 
 )
 CreateTestDriver(ITK-Foo "${ITK-Foo-Test_LIBRARIES}" "${ITK-FooTests}") # ${ITK-Foo-Test_LIBRARIES} is defined in function call itk_module_test()
 
 add_test(NAME itkFooHeaderTest

COMMAND ITK-FastMarchingTestDriver itkFastMarchingHeaderTest)

 add_test(NAME itkFooImageFilterTest

COMMAND ITK-FooTestDriver itkFooImageFilterTest)