## Set the name of the KIT being tested
set(KIT AMR)

## List all test sources
set(MyTests
    TestFlashReader.cxx
    TestEnzoReader.cxx 
    )
    
## Create test source list
create_test_sourcelist(Tests ${KIT}CxxTests.cxx
    ${MyTests}    
    EXTRA_INCLUDE vtkTestDriver.h
    )
add_executable( ${KIT}CxxTests ${Tests})
target_link_libraries( ${KIT}CxxTests vtkFiltering vtkParallel )
    
set(TestsToRun ${MyTests})

## Add all executables
foreach(test ${TestToRun})
  get_filename_component(t ${test} NAME_WE)
  add_test(${t} ${CXX_TEST_PATH}/${KIT}CxxTests ${t})
end foreach(test)
## Set the name of the KIT being tested
set(KIT AMR)

## List all test sources
set(MyTests
    TestFlashReader.cxx
    TestEnzoReader.cxx 
    )
    
## Create test source list
create_test_sourcelist(Tests ${KIT}CxxTests.cxx
    ${MyTests}    
    EXTRA_INCLUDE vtkTestDriver.h
    )
add_executable( ${KIT}CxxTests ${Tests})
target_link_libraries( ${KIT}CxxTests vtkAMR vtkFiltering vtkParallel )
    
set(TestsToRun ${MyTests})

## Add all executables
foreach(test ${MyTests})
  get_filename_component(t ${test} NAME_WE)
  add_test(${t} ${CXX_TEST_PATH}/${KIT}CxxTests ${t})
endforeach(test)
Fix typo in forearch loop
BUGFIX: Fix typo in forearch loop

Change-Id: I62bd209438ba55616d43037c97fd34792b158ba0
