Sign in to confirm you’re not a bot
This helps protect our community. Learn more
C++ in VS Code: Building your Code with CMake
1KLikes
72,377Views
2024Apr 26
Discover the benefits of using a build system for your C++ code. Follow along to learn how to add the CMake build system to your C++ project in VS Code. This includes information on how to navigate the CMake Tools Extension, create a CMakeLists.txt file, and use CMake Presets. If you run into any problems, feel free to reach out to us by leaving a comment below or reporting an issue on GitHub: https://github.com/microsoft/vscode-c.... Chapters: 00:00 C++ Development 00:10 Check out: C++ in VS Code: A Quick Guide 00:22 What is a Build System 01:03 Examples of Build Systems 01:27 CMake 01:56 Installing the CMake Tools Extension 02:39 Demo - Building C++ code with CMake 03:10 Step 1 - Create a CMakeLists.txt file 03:25 Demo 05:21 Step 2 - CMake Presets file 06:26 Demo 07:45 Step 3 - Select a build target 07:58 Demo 09:29 Happy Building! Resources: CMake Tools Extension GitHub repo - https://github.com/microsoft/vscode-c... CMake Tools Extension Docs - https://github.com/microsoft/vscode-c... CMake Documentation - https://cmake.org/documentation C++ in VS Code: A Quick Guide -    • C++ in VS Code: A Quick Guide   Connect and subscribe:    / code     / vscode     / code  

Follow along using the transcript.

Visual Studio Code

762K subscribers