ubuntu下,VSCode采用cmake编译C++工程

首先在VSCode中下载CMake和CMake Tools两个插件。

选中CMake Tools,可以看到在VSCode中如何使用cmake编译C++工程的教程。

官网教程

最重要且最实用,看这个网址就够了

https://vector-of-bool.github.io/docs/vscode-cmake-tools/getting_started.html

如果想细致了解,看以下两个网站

https://vector-of-bool.github.io/docs/vscode-cmake-tools/configuring.html

https://vector-of-bool.github.io/docs/vscode-cmake-tools/building.html

原文地址:https://www.cnblogs.com/gdut-gordon/p/12063669.html