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

From KitwarePublic
Jump to navigationJump to search
 
(One intermediate revision by one other user not shown)
Line 6: Line 6:
   )
   )
      
      
   CreateTestDriver(ITK-Foo "${ITKFooTest_LIBRARIES}" "${ITKFooTests}") # ${ITKFooTest_LIBRARIES} is defined in function call itk_module_test()
   CreateTestDriver(ITKFoo "${ITKFooTest_LIBRARIES}" "${ITKFooTests}") # ${ITKFooTest_LIBRARIES} is defined in function call itk_module_test()
    
    
   itk_add_test(NAME itkFooHeaderTest
   itk_add_test(NAME itkFooHeaderTest

Latest revision as of 16:00, 9 December 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(ITKFoo "${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)