CMakeLists.txt 475 Bytes
Newer Older
1
2
add_executable("test_box3p3c" test_box3p3c.cc)
add_executable("test_cc3p3c" test_cc3p3c.cc)
3

4
5
6
7
set(NORMALTESTS
  test_box3p3c
  test_cc3p3c)
set(ALLTESTS ${NORMALTESTS})
8

9
10
11
12
# 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})
13

14
15
16
17
foreach(_exe ${ALLTESTS})
  target_link_libraries(${_exe} ${DUNE_LIBS})
  add_test(${_exe} ${_exe})
endforeach(_exe ${ALLTESTS})