title: How to Set Path Environment Variable using CMake and Visual Studio to Run Test
body: <p>I am using CMake to generate Visual Studio project files. I want to run the test executable after setting the PATH environment variable so that it is able to load the required dll. I tried as per the discussion at <a href="http://www.mail-archive.com/cmake@cmake.org/msg21493.html" rel="noreferrer">http://www.mail-archive.com/cmake@cmake.org/msg21493.html</a> but it does not work. </p>
  
  <p>Have you used CMake with Visual Studio for this purpose? Please share your experiences. </p>
  
  <p>Also, I find no easy way to debug my CMake script, for example to see what value it assigns to the PATH variable. Setting CMake verbose with <code>CMAKE_VERBOSE_MAKEFILE</code> does not help. How would I go about debugging it myself? </p>