How do I set up cscope in Emacs when my source code lives in multiple directories?
Say I have several paths for my C++ project:
/path/to/my/code
(and subdirectories)/path/to/other/code
(and subdirectories)/path/to/static/linking/include/files
(and subdirectories)/path/to/static/linking/lib/files
' (and subdirectories)
I would like to use xcscope
to navigate/look up symbols in my code and the library that I am linking to.
The instructions for xcscope.el
say that I should first run C-c s (Cscope->Create list and index) at /path/to/my/code
, but I am then confused about how I to have the other paths indexed by cscope.
The documentation says I should go to the other directories and run cscope -b
, but what I am supposed to do after that?
I looked at the cscope.files
file that C-c s built. I think I am supposed to add my other paths to this file, but this file includes a list of source code files (not directories).
Do I have to manually edit cscope.files
to add every single file that I want to index that is outside of my project's root directory?