How to inform -I include directories for better parsing and IntelliSense

My project is based on Makefile, and it's not easy to convert to CMake.

I'm using CLion just for editing and browsing the source code. Building and debugging are separately done in a terminal.

Unfortunately, CLion fails to find many of definitions/declarations of the code because it doesn't understand any Makefile.

One of the most critical reasons would be not knowing -I include directories.

I'm wondering if there is any way to give some information of -I options to CLion IntelliSense engine.

I'm thinking creating a fake CMakeFile might be a solution.

0

Hi Carolle!

There is no way to tell CLion about include directories other than using include_directories() command in CMakeLists.txt. It is probably already created for you when you've imported your project. You can find out more here.

0

请先登录再写评论。