<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/building-your-c-code-with-cmake-in-vs-code-hzkmlk0uc" -->

---
title: Building your C++ Code with CMake in VS Code | daily.dev
description: Learn how to build your C++ code with CMake in VS Code. Discover what a build system is, how to install CMake and the CMake Tools Extension, and how to create...
canonical: https://daily.dev/posts/building-your-c-code-with-cmake-in-vs-code-hzkmlk0uc
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Building your C++ Code with CMake in VS Code | daily.dev
og:description: Learn how to build your C++ code with CMake in VS Code. Discover what a build system is, how to install CMake and the CMake Tools Extension, and how to create...
og:url: https://daily.dev/posts/building-your-c-code-with-cmake-in-vs-code-hzkmlk0uc
og:image: https://api.daily.dev/og/posts/HZKmlK0Uc.png
og:image:alt: Building your C++ Code with CMake in VS Code
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

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

**[DevBlogs](https://daily.dev/sources/devblogs)** · 1 min read · 7 upvotes · 1 comments

## Summary

Learn how to build your C++ code with CMake in VS Code. Discover what a build system is, how to install CMake and the CMake Tools Extension, and how to create a CMakeLists.txt file.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://devblogs.microsoft.com/cppblog/building-your-cpp-code-with-cmake-in-vs-code>

## Community discussion

Top comments from developers on daily.dev.

**@abdelhadiseddar** · 0 upvotes

> I always find myself struggling when trying to understand CMake, glad i found this!

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#build-systems](https://daily.dev/tags/build-systems), [#c](https://daily.dev/tags/c), [#vscode](https://daily.dev/tags/vscode)

[View this post on daily.dev](https://daily.dev/posts/building-your-c-code-with-cmake-in-vs-code-hzkmlk0uc)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Building your C++ Code with CMake in VS Code","url":"https://daily.dev/posts/building-your-c-code-with-cmake-in-vs-code-hzkmlk0uc","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/building-your-c-code-with-cmake-in-vs-code-hzkmlk0uc"},"datePublished":"2024-05-09T16:41:26.177Z","dateModified":"2025-09-06T02:35:56.269Z","description":"Learn how to build your C++ code with CMake in VS Code. Discover what a build system is, how to install CMake and the CMake Tools Extension, and how to create...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/397c3af5ab8a50dffe568f3fb6acbc45?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/397c3af5ab8a50dffe568f3fb6acbc45?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"DevBlogs","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"DevBlogs","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/8f68b453325f482ebeb73fb780092713","url":"https://daily.dev/sources/devblogs"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/building-your-c-code-with-cmake-in-vs-code-hzkmlk0uc","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":7},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"build-systems,c,vscode","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"DevBlogs","item":"https://daily.dev/sources/devblogs"},{"@type":"ListItem","position":3,"name":"Building your C++ Code with CMake in VS Code"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/building-your-c-code-with-cmake-in-vs-code-hzkmlk0uc","comment":[{"@type":"Comment","text":"I always find myself struggling when trying to understand CMake, glad i found this!","datePublished":"2024-08-10T08:29:54.876Z","url":"https://daily.dev/posts/HZKmlK0Uc#c-5bEmg7HPE","author":{"@type":"Person","name":"Abdelhadi Seddar","url":"https://daily.dev/abdelhadiseddar","image":"https://avatars.githubusercontent.com/u/91424903?v=4"}}]}
```

