title: How do I set PATH variable in Visual Studio's cmake project?
body: <p>I'm using VS 2019 to compile a qt project. The compilation runs well, but when I start the executable, I'm getting error messages about missing Qt dlls. I understand this is fixed with adding path to the dlls to the PATH environment variable, but in VS normal project, you can <a href="https://stackoverflow.com/questions/419979/setting-environment-variables-in-pre-build-event-and-using-in-compilation-step#420011">modify program starting environment</a> so that you don't have to make the modifications system-wide.
  This works for VS normal projects, but how do I make it work for cmake projects?</p>