I have installed VS Code in Linux for CMake projects.
I have followed larsmoa comment on how to build C++ project with CMake configuration.
I am stuck on how to configure the launch.json in order to run/debug program.
More specific, I would like to know if there is a way to set the configuration in a generic way and avoid to set the "program" with the program name each time I change project:
"program": "enter program name, for example ${workspaceRoot}/a.out",
Can we use for example the CMake project name or something similar?
"program": "${workspaceRoot}/build/${PROJECT_NAME}",