CMakeLists.txt 736 Bytes
Newer Older
1
2
3
4
# executables for exercise part a & b
#part a: 2pproblem
dune_add_test(NAME exercise3_a
              SOURCES exercise3.cc
5
              COMPILE_DEFINITIONS TYPETAG=ExerciseThreeTwoPTypeTag
6
7
8
9
10
11
              COMPILE_ONLY # for testing purposes, ignore for the exercise
              CMD_ARGS exercise3_a.input)

#part b: 2p2cproblem
dune_add_test(NAME exercise3_b
              SOURCES exercise3.cc
12
              COMPILE_DEFINITIONS TYPETAG=ExerciseThreeTwoPTwoCTypeTag
13
14
15
16
17
18
19
20
              COMPILE_ONLY # for testing purposes, ignore for the exercise
              CMD_ARGS exercise3_b.input)

# add tutorial to the common target
add_dependencies(test_exercises exercise3_a exercise3_b)

# add symlinks for the input files
add_input_file_links()