<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&gt; INSTALL(TARGETS helloworld<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RUNTIME DESTINATION bin STRIP_ALWAYS
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LIBRARY DESTINATION lib STRIP_NEVER<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ARCHIVE DESTINATION lib STRIP_NEVER<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)<br>&gt;<br>&gt; In my case that would work very well.<br><br>I guess you would do it this way for all installed targets ?
<br>Also for the LIBRARY part, which is only for libraries which were created<br>using ADD_LIBRARY( ... MODULE ...) ?</blockquote><div><br>I think so,&nbsp; the&nbsp; reason&nbsp; I specify&nbsp; RUNTIME/LIBRARY and ARCHIVE is convenience (I&#39;m lazy..). I Just copy these lines from one target to another and change the name, it works for the executables and libraries in the same way.
<br><br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Maybe ALWAYS_STRIP and EXCLUDE_FROM_STRIP would be a bit more consistent with
<br>the names of other command options.<br><br></blockquote></div><br>Perhaps the default could be ALWAYS_STRIP and only use EXCLUDE_FROM_STRIP when necessary. (In that case only the troublesome figures, like myself, need to change the INSTALL rule.)
<br><br>INSTALL(TARGETS helloworld<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RUNTIME DESTINATION bin <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LIBRARY DESTINATION lib EXCLUDE_FROM_STRIP<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ARCHIVE DESTINATION lib EXCLUDE_FROM_STRIP<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )
<br><br>Peter.<br><br>