clion 编译和调试原来的makefile编译的工程,可以参考这个办法
https://www.jetbrains.com/help/clion/managing-makefile-projects.html
https://www.jetbrains.com/help/clion/compilation-database.html
https://www.jetbrains.com/help/clion/custom-build-targets.html
https://www.jetbrains.com/help/clion/custom-build-targets.html#custom-rundebug
https://github.com/nickdiego/compiledb
https://www.jetbrains.com/help/clion/managing-makefile-projects.html
https://blog.jetbrains.com/clion/2014/09/clion-answers-frequently-asked-questions/