Skip to content
Snippets Groups Projects
Commit 8a962b9f authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

Add CMake support for running tests.

parent e3e8a742
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@ add_subdirectory("iterationsteps")
add_subdirectory("norms")
add_subdirectory("operators")
add_subdirectory("solvers")
add_subdirectory("test")
add_subdirectory("transferoperators")
install(FILES
......
set(TESTS
cgsteptest
genericvectortoolstest
lowrankoperatortest
multigridtest
nulloperatortest
obstacletnnmgtest
sumoperatortest
)
set(TESTS_IPOPT mmgtest quadraticipoptsolvertest)
if(HAVE_IPOPT)
list(APPEND TESTS ${TESTS_IPOPT})
endif()
foreach(_test ${TESTS})
add_executable(${_test} EXCLUDE_FROM_ALL ${_test}.cc)
target_link_dune_default_libraries(${_test})
add_test(${_test} ${_test})
endforeach()
if(HAVE_IPOPT)
foreach(_test ${TESTS_IPOPT})
add_dune_ipopt_flags(${_test})
endforeach()
endif()
add_directory_test_target(_test_target)
add_dependencies(${_test_target} ${TESTS})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment