title: cmake "make run"
body: <p>I'm a little unsure of terminology in this problem domain, which is an issue when I try to search for things. </p>
  
  <p>I'm using CMake for my build process. I'd like to make a Makefile target such that I can use <code>make run</code> to run a given process (specifically, the one I've just built with <code>make</code>). I realize I could just make a shell script, or just run the command by typing it out. If I was writing a Makefile myself, I'd do this like so:</p>
  
  <pre><code>
  run:
      ./path/to/binary
  </code></pre>
  
  <p>I don't ever write a <code>Makefile</code> myself, though - that's generated by <code>cmake</code> - and I'm not sure what to put in my <code>CMakeLists.txt</code> to get it to generate the desired <code>make run</code> target. </p>
  
  <p>I've found the <code>cmake</code> command '<code>execute_process</code>', but that doesn't seem to be what I'm after - I don't want to actually run anything during the build process. </p>
  
  <p><strong>Extra</strong>: In addition, I'd love to be able to do something like the following:</p>
  
  <pre><code>
  CMAKE_COMMAND_ADD_MAKEFILE_TARGET ( ${CMAKE_PROJECT_DIR}/binary )
  </code></pre>
  
  <p>That is, add the <code>path/to/binary</code> using a cmake variable, if that's possible. </p>