Remap include paths
已回答
I have a situation where I'm working with a large code repository: https://github.com/PixarAnimationStudios/USD
in the code they're include headers with this format: #include "pxr/base/gf/matrix4d.h" However the directory structure in the repository looks like this: pxr/base/lib/gf/matrix4d.h.
The extra lib dir is stopping me from using a lot of clion's features.
I don't want to alter the directory structure because i want to be able to periodically pull changes. I've tried to simlink the files into a structure and point clion at those via include_directories() and with some gui options but nothing seems to be working.
Any ideas would be appreciated.
Thanks
请先登录再写评论。
Hi, Jason.
As far as I can tell, this projects relocates its headers to CMake build directory (possibly on build time) and adds it to the include search path, so it should work once you've built it (you might need to reload the project in CLion: `Tools | CMake | Reload CMake Project` after the first build). Does that help?