Commit 20b398c7 authored by George Zagaris's avatar George Zagaris
Browse files

STYLE: Change CMake commands to upper-case

Change-Id: I97dd82d56ceb0e12f462537214c06b3890e6cc99
parent eaaadf44
add_subdirectory(Cxx) ADD_SUBDIRECTORY(Cxx)
IF(PYTHON_EXECUTABLE) IF(PYTHON_EXECUTABLE)
ADD_TEST(HeaderTesting-AMR ${PYTHON_EXECUTABLE} ADD_TEST(HeaderTesting-AMR ${PYTHON_EXECUTABLE}
......
## Set the name of the KIT being tested ## Set the name of the KIT being tested
set(KIT AMR) SET(KIT AMR)
## List all test sources ## List all test sources
set(MyTests SET(MyTests
TestFlashReader.cxx TestFlashReader.cxx
TestEnzoReader.cxx TestEnzoReader.cxx
) )
## Create test source list ## Create test source list
create_test_sourcelist(Tests ${KIT}CxxTests.cxx CREATE_TEST_SOURCELIST(Tests ${KIT}CxxTests.cxx
${MyTests} ${MyTests}
EXTRA_INCLUDE vtkTestDriver.h EXTRA_INCLUDE vtkTestDriver.h
) )
add_executable( ${KIT}CxxTests ${Tests}) ADD_EXECUTABLE( ${KIT}CxxTests ${Tests})
target_link_libraries( ${KIT}CxxTests vtkAMR vtkFiltering vtkParallel ) TARGET_LINK_LIBRARIES( ${KIT}CxxTests vtkAMR vtkFiltering vtkParallel )
set(TestsToRun ${MyTests})
## Add all executables ## Add all executables
foreach(test ${MyTests}) FOREACH(test ${MyTests})
get_filename_component(t ${test} NAME_WE) GET_FILENAME_COMPONENT(t ${test} NAME_WE)
add_test(${t} ${CXX_TEST_PATH}/${KIT}CxxTests ${t}) ADD_TEST(${t} ${CXX_TEST_PATH}/${KIT}CxxTests ${t})
endforeach(test) ENDFOREACH(test)
\ No newline at end of file \ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment