CLion CMake project additional non-project includes
Hey hey!
I recently started working on a new project that is a CMake project. The project uses some scripts to generate some headers (and source files) when building some targets, and these files are not in the original project but get generated next to the source files in the build directory.
This breaks the syntax highlighting and code analysis features of CLion because the headers are not present only in the build directory. I want to add some extra include directories but only for CLion to see the files not to the CMake project, is that possible in some way in the CLion settings?
I am unable to modify the project structure or the way it operates, it is a large embedded project with some quirky build behavior.
In essence just an extra include directory for clangd that is not in the CMake project.
Thanks in advance!
请先登录再写评论。
Have you tried the include_directories directive?
include_directories( "my_special_includes" )