I have a C project that was originally some other IDE project.
All #includes are without full path to the header file, but use simple filename instead.
I see them in red with an error message 'Cannot find someheaderfile.h' and I cannot do 'Find Usages' or 'Go to declaration'.
This is when I mark the root sources directory with 'Mark Directory as Project Sources and Headers'. When I unmark this one, I get all #includes in green, but I still cannot follow any references and I also have "This file does not belong to any project target, code insight features might not work properly" warning message.
I tried to add different directories to include_directories() in CMakeLists.txt, but that doesn't seem to work.
Could you please advise what I can do to browse the source code? I do not need (and probably couldn't) build this code. What I need is to use those two navigation features I mentioned.