Visual Studio Code CMake Tools Extension 1.18 Update: Quick Start with CMake and more…

Table of Contents
CMake: Quick Start Updates
The CMake: Quick Start command in the VS Code CMake Tools extension assists users in building an existing simple project with CMake even without a CMakeLists.txt file. The update allows users to add pre-existing .cpp files as targets in the generated CMakeLists.txt file, dynamically add support for CPack and CTest, and generate a CMakePresets.json file based on custom configurations or pre-existing compilers on the machine.
How it works
When invoking CMake: Quick Start via the command palette, users are prompted to name their project. The experience is enhanced to dynamically generate a CMakeLists.txt file and CMakePresets.json file. Users have options to add CPack and CTest support to the CMakeLists.txt file, select pre-existing .cpp files as CMake targets, or generate a "Hello World" .cpp file if no pre-existing files are selected. This streamlines the process of setting up CMake build configurations for the project.
CMake Presets v7 and v8 Support
The VS Code CMake Tools extension now supports CMake presets files up to version 8. CMake presets v7 includes the trace property support in configure presets for enhanced configurability and flexibility in CMake configurations.