Yes, this to me is the most annoying issue in the current (really great!) CMake implementation.
In Visual Studio, opening a generated project makes it impossible to browse the files, because VS immediately switches you back to ‘native cmake’ mode when you try doing that, which then exposes the missing features in that mode like not being able to debug a custom target (like VST).
I think the same thing happens in XCode. Only in Jetbrains IDEs (CLion/AppCode) I’m able to browse the source files correctly, which is good for my personal workflow but problematic for others.
P.S. IIRC, @McMartin has solved that problem well in his FRUT library, so he might be able to help with implementation?
I believe all that’s needed is adding all files under a module into the source group of the module during
juce_add_module(), but excluding the files that have the same name as the module (such as