CMakeLists.txt 580 Bytes
Newer Older
Christoph Grueninger's avatar
[CMake]    
Christoph Grueninger committed
1
# build target for the CO2 test problem
2
add_executable("test_boxco2" test_boxco2.cc)
3
add_dune_alugrid_flags(test_boxco2)
4
add_executable("test_ccco2" test_ccco2.cc)
5
add_dune_alugrid_flags(test_ccco2)
Christoph Grueninger's avatar
[CMake]    
Christoph Grueninger committed
6

7
8
9
10
set(NORMALTESTS
  test_boxco2
  test_ccco2)
set(ALLTESTS ${NORMALTESTS})
Christoph Grueninger's avatar
[CMake]    
Christoph Grueninger committed
11

12
13
14
15
# We do not want want to build the tests during make all,
# but just build them on demand
add_directory_test_target(_test_target)
add_dependencies(${_test_target} ${ALLTESTS})
Christoph Grueninger's avatar
[CMake]    
Christoph Grueninger committed
16

17
18
19
20
foreach(_exe ${ALLTESTS})
  target_link_libraries(${_exe} ${DUNE_LIBS})
  add_test(${_exe} ${_exe})
endforeach(_exe ${ALLTESTS})