C++ in VS Code: Building your Code with CMake

preview_player
Показать описание

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: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:

Connect and subscribe:
Комментарии
Автор

Wow that is complicated! I need a tool for CMake.

MikeTwohey
Автор

any hotkey to run instead of clicking the status bar icon?

why is F5 hotkey wanting to do its own things? is there a way to have the regular "Run" menu use the CMake tooling?

xeb-
Автор

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.

josemarcos
Автор

CMake has this problem that every feature has a randomly created command name. There is absolutely no norm or reasoning in what are the command names.

ignacionr
Автор

I have problem with CMake, when I select the side popup bar for CMake It shows [Target in Preset] for (Build), I couldn't change it to (MyCMakeproject). can you help me?

khalilhashmi
Автор

I am trying to setup CMakeLists.txt automatically bia command pallete from Vs code
i am getting an error:
Bad CMake executable: "cmake.cmakePath". Check to make sure it is installed or the value of the "cmake.cmakePath" setting contains the correct path

ajays
Автор

Did I just see the Microsoft Product Manager installing CMake onto a Mac (including the standard GUI way to move to the "Applications" folder, rather specific name used by Apple)?

(Yes, chose version for "macOS 10.10 or later".)

(I do appreciate the wide applicability of the tools and showing that on a different system. Just was a bit jarring.)

gordonelliott
Автор

I spent over 20 years developing in C++ daily before escaping. For those still trapped, I wish you well.

Tony-dprl
Автор

Unable to start debugging. Unable to establish a connection to LLDB.

zeroskyline
Автор

Can you please provide a class for adding more file to CMAKE in just 2 steps?

williamsf.h.
Автор

Why don't you give an examlpe with dependencies?

wesleytaylor-rendal
Автор

Nice tutorial. You didn't state the keyboard shortcut you used to enter the Command Palette in Vscode (It is Ctrl + Shift + P). Again at that "Set Build Target" things were a little muddled up, because if you click it, it lists out Presets for you to select from and gives you the option to add a new Preset, but you just entered the name skipping a step and also without stating whether you added an additional Preset.

paulnnamdi
Автор

How to compile a single cpp file? Many times there is an error that file cannot be compiled.

maciej