title: Does CMake offer a method to set the working directory for a given build system to use when running/debugging the project?
body: <p>I have a project with the following structure:</p>
  
  <pre><code>project_name/CMakeLists.txt
  project_name/src
  project_name/resources
  ...
  project_name-build/configuration_name/project_name.exe
  </code></pre>
  
  <p>I want my application to be run in the root project directory <code>project_name</code> so it can directly access <code>resources</code>.</p>
  
  <p>Does CMake provide a method to specify this property, or will I have to manually set it in each build environment I use? </p>
  
  <p>I've looked around in the documentation and haven't found anything other than the possibility of <a href="http://www.cmake.org/pipermail/cmake/2010-October/040181.html">setting up a post-build event to run my project from the desired directory</a> which is less than desirable. I also found that <a href="http://msdn.microsoft.com/en-us/library/kcw4dzyf.aspx">the working directory setting for Visual Studio is saved in a per-user file (.vcxproj.user)</a> which I don't believe CMake generates (which points to the answer being probably no).</p>