美文网首页
Clion编译调试Makefile项目

Clion编译调试Makefile项目

作者: 王国的荣耀 | 来源:发表于2023-05-22 19:09 被阅读0次

将Makefile项目转为compile_commands.json文件

安装:pip install compiledb
compiledb -nf make
将makefile转换为compile_commands.json文件。

打开生成的compile_commands.json文件,并选择Open as Project。

配置clion的编译调试参数

  1. 配置相关的make编译选项。
  2. 设置相关的启动程序和参数。

相关文章

网友评论

      本文标题:Clion编译调试Makefile项目

      本文链接:https://www.haomeiwen.com/subject/uastedtx.html