title: where does qtcreator with cmake store run and build settings, and how to set via script?
body: <p>In my usage at least, I sometimes delete my CMake build folder and create a new one, or have multiple build folders (one per computer) but only one source folder (nfs mount). </p>
  
  <p>From what I can tell, QT Creator saves settings into CMakeLists.txt.user  <em>inside the source</em> tree, and some others settings into the 'project.cbp' file in the build folder. If I set settings from the GUI, they are lost after wipe/create build folder. Fair enough, but I'd like to use a script to set them up again when a new build is made. </p>
  
  <p>So, how do I:</p>
  
  <p>a) make QT Creator write the CMakeLists.txt.user folder somewhere other than the source tree so that machine-specific settings are kept (e.g. debug on the development computer, release on the test computer) ?</p>
  
  <p>b) read/write the build and run settings from QT Creator project, such as debug arguments for each executable and extra build commands (e.g. -j8) ?</p>
  
  <p>Then I would do something like "execute_process( ... )" in CMakeLists.txt to set some debug and build arguments for the QT Creator project. </p>