Skip to content

Commit 1cb6c86

Browse files
authored
Merge pull request #4981 from sinemakinci1/docs-editor/cmake-projects-in-visual-studi-1689373970
Update cmake-projects-in-visual-studio.md
2 parents f76ce86 + c72cacd commit 1cb6c86

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

docs/build/cmake-projects-in-visual-studio.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ ms.topic: concept-article
66
f1_keywords: ["VS.ToolsOptionsPages.CMake.General", "VS.ToolsOptionsPages.CMake.LanguageServices"]
77
ms.custom: sfi-image-nochange
88
---
9+
910
# CMake projects in Visual Studio
1011

1112
[CMake](https://cmake.org) is a cross-platform, open-source tool for defining build processes that run on multiple platforms. This article assumes you're familiar with CMake. For more information about CMake, see the [CMake documentation](https://cmake.org/cmake/help/latest/index.html#). The [CMake tutorial](https://cmake.org/cmake/help/latest/guide/tutorial/index.html#guide:CMake%20Tutorial) is a good starting point to learn more.
@@ -50,6 +51,10 @@ Once CMake cache generation has succeeded, you can also view your projects organ
5051

5152
:::image type="content" source="media/cmake-targets-view2.png" alt-text="Screenshot of the Solution Explorer Views window. The folder view is open. The C Make Targets View option is highlighted.":::
5253

54+
You can also switch views by right-clicking on any file or folder in your Solution Explorer and selecting **Switch to CMake Targets View**.
55+
56+
![A screenshot of right-clicking a file or folder in the Solution explorer. The context menu item to Switch to CMake Targets View is visible.](media/visual-studio-switch-cmake-targets-view.png)
57+
5358
Choose the **Show All Files** button at the top of **Solution Explorer** to see all the CMake-generated output in the *`out/build/<config>`* folders.
5459

5560
Use the *`CMakeLists.txt`* file in each project folder just as you would in any CMake project. You can specify source files, find libraries, set compiler and linker options, and specify other build system-related information. For more information on CMake language services provided by Visual Studio, see [Editing CMakeLists.txt files](#editing-cmakeliststxt-files).
57.5 KB
Loading

0 commit comments

Comments
 (0)