<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">> INSTALL(TARGETS helloworld<br>> RUNTIME DESTINATION bin STRIP_ALWAYS
<br>> LIBRARY DESTINATION lib STRIP_NEVER<br>> ARCHIVE DESTINATION lib STRIP_NEVER<br>> )<br>><br>> 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, the reason I specify RUNTIME/LIBRARY and ARCHIVE is convenience (I'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> RUNTIME DESTINATION bin <br> LIBRARY DESTINATION lib EXCLUDE_FROM_STRIP<br> ARCHIVE DESTINATION lib EXCLUDE_FROM_STRIP<br> )
<br><br>Peter.<br><br>