CLion searches through the same places CMake does. Set the include_directories variable in CMake to provide the headers path to the IDE. More details on CMake configuration can be found in our Quick CMake Tutorial.
Since CLion 1.5 EAP there is also a new feature ‘Mark Directory As’ that allows to mark directories as:
- Project sources and headers
Read more about use cases and details in our blog.