Adding directory for indexing

Answered

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?

0
1 comment

Hello!

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 https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.

Meanwhile, you can try the following:

  1. CLion supports Makefile projects (https://www.jetbrains.com/help/clion/makefiles-support.html), 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 - https://www.jetbrains.com/help/clion/compilation-database.html.
0

Please sign in to leave a comment.