Clion中管理Makefile项目

Catalogue
  1. 1. Tut
    1. 1.1. 安装 PIP
    2. 1.2. install compiledb
    3. 1.3. compile db
    4. 1.4. install plugin for clion
    5. 1.5. open project
  2. 2. 参考

Tut

安装 PIP

1
sudo apt install python-pip

install compiledb

1
pip install compiledb

compile db

1
compiledb -n make

install plugin for clion

skip

open project

CLion will detect the compile_commands.json file and look in there for its project information. You may see it think about it for a few seconds, then show the “Compiler Info” tab on the Build tool window, telling you that everything finished ok (there were any errors or warnings you’ll see them in the “Sync” tab).

参考