: Ensure the Desktop development with C++ workload is checked.

: Click Modify to download and install the necessary components. Method 2: Standalone Installation from CMake.org

For users who need a specific or more recent version than what is bundled with Visual Studio, you can download the official binary directly.

: Locate the installer on your computer and click Modify on your current installation (e.g., Visual Studio 2022).

: In the Installation details pane on the right, under "Optional," make sure C++ CMake tools for Windows is selected.

C++ CMake Project with Visual Studio 2022 and GitHub Copilot

Downloading and installing CMake for Visual Studio is a straightforward process that can be handled either through the official Visual Studio Installer or by installing a standalone version from the developer. Modern versions of Visual Studio provide deep, native support for CMake, allowing you to build, test, and debug C++ projects without ever leaving the IDE.

If you are already using Visual Studio for C++ development, the easiest way to get CMake is through the built-in installer. This ensures that the version of CMake is fully compatible with your current IDE setup.