Duplicated Code in CMake files when CodeGen is used
The codegen pipeline enables the usage of different targets like GPU or CPU. However, at the moment code duplication is needed in the CMake file. an example can be found here: https://i10git.cs.fau.de/walberla/walberla/-/blob/master/apps/benchmarks/FlowAroundSphereCodeGen/CMakeLists.txt
It would be good if a better solution could be found for this problem. One problem that might occur in this regard is that it is not guaranteed that all files are for a specific target if this target is used. For example, if the simulation should use GPUs there could be a generated initialiser that runs on the CPU. Thus this would be a cpp file among the cu files.