Commit 4c9e2b97 authored by Carsten Gräser's avatar Carsten Gräser
Browse files

[test] Update build system for tests

parent df9d8b9d
# Put your test in here if it needs access to external grids
set(GRID_BASED_TESTS
gradientmethodtest
)
# Put your test in here if does not needs access to external grids
set(OTHER_TESTS
)
set(TESTS ${OTHER_TESTS} ${GRID_BASED_TESTS})
# Setup targets, register tests, and add dune flags
foreach(_test ${TESTS})
add_executable(${_test} EXCLUDE_FROM_ALL ${_test}.cc)
target_link_dune_default_libraries(${_test})
add_test(${_test} ${_test})
endforeach()
# Add external grid manager flags
foreach(_test ${GRID_BASED_TESTS})
if(HAVE_UG)
add_dune_ug_flags(${_test})
endif(HAVE_UG)
endforeach()
add_directory_test_target(_test_target)
add_dependencies(${_test_target} ${TESTS})
dune_add_test(SOURCES gradientmethodtest)
Markdown is supported
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