Question: how to create cmake project in visual studio?
Answer: Building CMake projects Select the preferred configuration and press F5, or click the Run (green triangle) button on the toolbar. The project automatically builds first, just like a Visual Studio solution. Right click on the CMakeLists. txt and select Build from the context menu.