ITK/Release 4/Modularization/Add a module/test/CMakeLists.txt: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
(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 ...")
 
No edit summary
Line 1: Line 1:
   itk_module_test() # this macro takes care of the test module(ITK-Foo-Test)'s dependencies  
   itk_module_test() # this macro takes care of the test module(ITK-Foo-Test)'s dependencies
 
 
   set(ITK-FooTests
   set(ITK-FooTests
       itkFooHeaderTest.cxx  # each module has a header test
       itkFooHeaderTest.cxx  # each module has a header test
       itkFooImageFilterTest.cxx  
       itkFooImageFilterTest.cxx  
   )
   )
   
   CreateTestDriver(ITK-Foo "${ITK-Foo-Test_LIBRARIES}" "${ITK-FooTests}") # ${ITK-Foo-Test_LIBRARIES} is defined in function call itk_module_test()
   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
   add_test(NAME itkFooHeaderTest
COMMAND ITK-FastMarchingTestDriver itkFastMarchingHeaderTest)
        COMMAND ITK-FastMarchingTestDriver itkFastMarchingHeaderTest)
   add_test(NAME itkFooImageFilterTest
   add_test(NAME itkFooImageFilterTest
COMMAND ITK-FooTestDriver itkFooImageFilterTest)
        COMMAND ITK-FooTestDriver itkFooImageFilterTest)

Revision as of 19:31, 4 April 2011

 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)