<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class=""><br>
</div>I am no NSIS expert so I can't imagine why 'File /r "${INST_DIR}\*.*"'<br>
could possibly do ???<br></blockquote><div><br></div><div><br></div><div><div>About the file command the NSIS documentation says this:</div><div> Adds file(s) to be extracted to the current output path ($OUTDIR).<br></div>
<div> If the /r switch is used, files and directories are added recursively.</div></div><div><br></div><div>That is, the File command copies the files (all files as it is *.*) specified in the path ${INST_DIR}\*.* recursively to the current set output directory of the NSIS. The value of the INST_DIR variable is the directory which the user has selected at install time.</div>
<div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
So I guess that if your template does not contain such command you<br>
either need it<br></blockquote><div><br></div><div>I tried adding @CPACK_NSIS_FULL_INSTALL@, and it generated File /r "${INST_DIR}\*.*" but this causes NSIS an error. Now I am in the assumption that CMake copies all the files hierarchically to some temp directory and from that location it does the copy (this is only a wild guess).</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
(and should use CPACK_NSIS_FULL_INSTALL in your template) or replace<br>
it with something more appropriate to you case.<br><span class=""><font color="#888888"><br></font></span></blockquote><div><br></div><div><br></div><div>What I don't understand is, what happens to the "install targets" commands in the CMake file on windows platform</div>
<div> </div></div></div></div>