We have a script to generate the correct CMakeLists.txt in the dumux folder.
dumux
However, there are still mistakes in the test folder.
test