<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Oct 28, 2014 at 11:27 AM, Orion Poplawski <span dir="ltr"><<a href="mailto:orion@cora.nwra.com" target="_blank">orion@cora.nwra.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">There should be a series in:<br>
<br>
/usr/share/icons/hicolor/XxX/apps/CMakeSetup.png<br>
<br>
Where XxX is the resolution, eg: 32x32, 48x48,... :<br>
<br>
ls /usr/share/icons/hicolor<br>
128x128  192x192  22x22  256x256  36x36  512x512  72x72<br>
16x16    20x20    24x24  32x32    48x48  64x64    96x96<br>
<br>
You don't need all of them, but a selection is nice.<br>
<br>
SVG/svgz is nice too, and that goes in "scalable".<br></blockquote><div><br></div><div>I do this within the RPM spec file for packages I maintain which don't do this for me but the idea should work the same for CMake, something like:</div><div><br></div><div>if(UNIX) # Or any other qualifiers/tests needed...</div><div>    include(GNUInstallDirs)</div><div>    set(ICON_INSTALL_PREFIX} "${CMAKE_INSTALL_DATADIR}/icons/hicolor")</div><div>    set(ICON_SIZES "32x32;64x64;128x128")</div><div><br></div><div>    foreach(_size ICON_SIZES)</div><div>        install(FILES CMakeSetup${_size}.png</div><div>            DESTINATION ${ICON_INSTALL_PREFIX}/${_size}/apps</div><div>            RENAME CMakeSetup.png)</div><div>    endforeach()</div><div><br></div><div>    install(FILES CMakeSetup.svg DESTINATION ${ICON_INSTALL_PREFIX}/scalable/apps)</div><div>endif()</div><div><br></div><div>This assumes the icon size is appended to the base name.</div><div><br></div><div>I haven't tested this and it may well have typos but I would think this would work.</div><div><br></div><div>Thanks,</div><div>Richard</div></div></div></div>