Skip to content
Snippets Groups Projects
Commit ccbebc3e authored by Oliver Sander's avatar Oliver Sander
Browse files

CMake support for the unit tests

parent d25425cc
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,7 @@ add_subdirectory("m4")
add_subdirectory("dune")
add_subdirectory("doc")
add_subdirectory("cmake/modules")
add_subdirectory("test")
# finalize the dune project, e.g. generating config.h etc.
finalize_dune_project(GENERATE_CONFIG_H_CMAKE)
set(TESTS
adolctest
averagedistanceassemblertest
cosseratenergytest
frameinvariancetest
globalgfetestfunctionbasistest
harmonicenergytest
interillustration
localgeodesicfefunctiontest
localgeodesicfestiffnesstest
localgfetestfunctiontest
nestednesstest
nonconvexitytest
nonconvexitytest_simple
orthogonalmatrixtest
rodassemblertest
rotationtest
svdtest
targetspacetest
true-adolctest
vtkreadertest
)
add_directory_test_target(_test_target)
add_dependencies(${_test_target} ${TESTS})
foreach(_test ${TESTS})
add_executable(${_test} ${_test}.cc)
target_link_libraries(${_test} ${DUNE_LIBS})
add_dune_ug_flags(${_test})
add_test(${_test} ${_test})
endforeach()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment