Summary
When I click (Right click -> "Go To Definition F12"), I would like it to show me the source of external libraries compiled with cmake.
Details/What I've tried
I was under the impression that in (Properties -> VC++ Directories -> Source Directories) I could just add the path and Intellisense would pick it up, but that doesn't seem to do it. I used to copy the source code into the project directory (but not compile it). That worked but that got annoying because "Find and replace in project" would really mess things up. I could theoretically reference the cmake generated visual studio project files, but since everything is already automatically compiled on the command line and linked properly in my project, I'm not sure if that's the best option because it involves upgrading all the visual studio project files and potentially cluttering the project and maybe making it less portable.
Maybe relevant details:
- Only the dependencies are compiled with cmake
- Visual studio version is 2022
- I use the "show all files" method in answer to this question to compile my my files
- I really just want Intellisense data for the external library source outside of my project
- External library files are not in $(ProjectDir)
Anyway, any help appreciated and feel free to lend advice on how you'd setup the project.