title: How to copy the dll's using cmake?
body: <p>I have to copy dll's to a folder while building my solution. The structure of cmake as follows:</p>
  
  <pre><code>    D:/src/cmakeLists.txt
      D:/target/runtime/bin
      D:/repos/stable/compiler/xyz.dll
  </code></pre>
  
  <p>So, i want to copy xyz.dll to "D:/target/runtime/bin" . I did as follows in cmake:</p>
  
  <pre><code>add_custom_command(TARGET performance POST_BUILD        
  COMMAND ${CMAKE_COMMAND} -E copy_if_different  
      "${PROJECT_SOURCE_DIR}/libs/xyz.dll"  
      $&lt;TARGET_FILE_DIR:performance&gt;)
  </code></pre>
  
  <p>But it did not copied any dll. So, suggest me how do i achieve it. I am not much familiar with cmake .So, please suggest.</p>