C++ in VS Code: Building your Code with CMake
ฝัง
- เผยแพร่เมื่อ 15 มิ.ย. 2024
- 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: 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 - github.com/microsoft/vscode-c...
CMake Tools Extension Docs - github.com/microsoft/vscode-c...
CMake Documentation - cmake.org/documentation
C++ in VS Code: A Quick Guide - • C++ in VS Code: A Quic...
Connect and subscribe:
/ code
/ vscode
/ code - วิทยาศาสตร์และเทคโนโลยี
Love your video❤
Hello everyone! I would like to suggest that VSCode have a theme that follows the Windows 11 theme, including the Mica effect on the top menu bar and status bar, as it does in Microsoft Edge.
Wow that is complicated! I need a tool for CMake.
Thank you
Nice! 🎂
I spent over 20 years developing in C++ daily before escaping. For those still trapped, I wish you well.
😂
How to compile a single cpp file? Many times there is an error that file cannot be compiled.
😂😂
Hey! This could be due to the compiler you are trying to use. If you are trying to compile a C++ file, make sure you are using a g++ compiler or its equivalent.
You are gorgeous! I want to meet a woman coder! Im 38 and been coding since 1994 then the subseven days, progz for aim, yahoo punters etc. lol now a gull stack lead. (Thats my dating resume for ya..) lol jk but good vid!