title: How do I use a target's path in add_custom_command in CMake?
body: <p>In CMakeLists.txt have a library called "library.dll". I want to add a post build event to copy the resulting file to a different directory. The documentation says to use generator events, but it's not working:</p>
  
  <pre><code>add_custom_command(TARGET library.dll POST_BUILD COMMAND copy $&lt;TARGET_FILE:library.dll&gt; \"${SOME_DIR}/bin\")
  </code></pre>
  
  <p>I'm using CMake 2.8.3 to generate VC++ 2010 project files on Windows 7.</p>