<p>I am sorry I use a trick to solve this problem.</p>

<p>I was try to make a symlink, as we know that it can not work on Windows. Another solution was to use <code>add_custom_command</code> make a copy of it after the target has been built, but it  can not remain the extension of the file name.</p>

<p>I may be archived by determining  the platform then copying the file. This is against the use of CMake, which is used for cross-platform build. Would you have a suggestion?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/mlpack/mlpack/pull/618#issuecomment-210529349">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFNGa-LvTN5HgozHmhqxKPfK855wHks5p37vvgaJpZM4IIT2r.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/pull/618#issuecomment-210529349"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>