alternative solution: works with an reduced example if i after, Import Folder Recursivley, generate the CMake Build system new with the Project settings->Build subsytem combobox ‘Cmake’ entry (not currently selected).
But now only one main.cpp in a sub folder is visibly in the visual studio solution explorer. A second main.cpp is missing in the parent folder.