Adding directory for indexing


We use a 3rd-party library.  I'd like to have CLion index the sources/includes so that I can navigate to those files in the IDE.  I've looked and looked.  It seems that it's tied to your project being buildable via CMake.  I am using CLion mostly as a code navigator and editor.  Our build environment is based on just make and I guild from the CLI, not within CLion.  So, the project isn't really configured to build.  But, I'd still like my 3rd-party library to get indexed and used.  How do I get CLion to do that?

1 comment


In CLion, advanced syntax highlighting and smart code features are only available if the project model is properly configured, as it needs to collect important information (like compilation flags, header search paths, etc) from the project model.

We have a feature request for better support opening projects with an unsupported build system or without it - CPP-34547. Feel free to comment or upvote it in order to get updates. See if you are not familiar with YouTrack.

Meanwhile, you can try the following:

  1. CLion supports Makefile projects (, so you can try to configure your project in CLion. 
  2. You can create a compilation database for your project and open it in CLion -

Please sign in to leave a comment.