0

I download the visual studio 2017 but Cmake Executable Template is not show when I created new project. Downloading time CMake project not seen in visual studio 2017' Cmake is not seen

Jamshed Salik
  • 19
  • 1
  • 2
  • 9
  • It seems you have already ask a [question](https://stackoverflow.com/questions/48795184/cmake-file-not-seen-in-visual-studio-2017) about the same problem. Instead of creating new question, [edit] the previous one. – Tsyvarev Feb 15 '18 at 09:14
  • 1
    Possible duplicate of [cmake file not seen in visual studio 2017](https://stackoverflow.com/questions/48795184/cmake-file-not-seen-in-visual-studio-2017) – Tsyvarev Feb 15 '18 at 09:14
  • Possible duplicate of [Creating a cmake project with visual studio](https://stackoverflow.com/questions/46741850/creating-a-cmake-project-with-visual-studio) – Florian Feb 18 '18 at 21:00

1 Answers1

0

This is not how CMake support in Visual Studio works.

Visual Studio does not provide a "New Project" wizard for CMake. Instead, you manually create a folder with a (potentially empty) CMakeLists.txt file, which you can then load into Visual Studio via

File->Open->CMake...

Open CMake option in File menu

Once opened, you can edit your CMakeLists.txt from within Visual Studio.

ComicSansMS
  • 51,484
  • 14
  • 155
  • 166
  • 1
    Just a hint: To make it easier to start with a CMake project in VS2017 I've written an VS extension to add "CMake Project Wizards". See [Creating a cmake project with visual studio](https://stackoverflow.com/questions/46741850/creating-a-cmake-project-with-visual-studio/47061073#47061073) or directly at https://marketplace.visualstudio.com/items?itemName=oOFlorianOo.CMakeProjectWizards – Florian Feb 18 '18 at 20:57
  • ok i am opening cmake worongly . thanks problem solved – Jamshed Salik Apr 13 '21 at 09:34