CMakeLists.txt 584 Bytes
Newer Older
George Zagaris's avatar
George Zagaris committed
1
## Set the name of the KIT being tested
2
SET(KIT AMR)
George Zagaris's avatar
George Zagaris committed
3
4

## List all test sources
5
SET(MyTests
George Zagaris's avatar
George Zagaris committed
6
7
8
9
10
    TestFlashReader.cxx
    TestEnzoReader.cxx 
    )
    
## Create test source list
11
CREATE_TEST_SOURCELIST(Tests ${KIT}CxxTests.cxx
George Zagaris's avatar
George Zagaris committed
12
13
14
    ${MyTests}    
    EXTRA_INCLUDE vtkTestDriver.h
    )
15
16
ADD_EXECUTABLE( ${KIT}CxxTests ${Tests})
TARGET_LINK_LIBRARIES( ${KIT}CxxTests vtkAMR vtkFiltering vtkParallel )
George Zagaris's avatar
George Zagaris committed
17
18
    
## Add all executables
19
20
FOREACH(test ${MyTests})
  GET_FILENAME_COMPONENT(t ${test} NAME_WE)
21
  ADD_TEST(${t} ${CXX_TEST_PATH}/${KIT}CxxTests ${t} -D ${VTK_DATA_ROOT})
22
ENDFOREACH(test)