application icons on other operating systems too

Alexander Neundorf neundorf at kde.org
Thu Sep 27 17:45:19 BST 2007


On Thursday 27 September 2007 03:47, Tadeusz Andrzej Kadlubowski wrote:
> On Sep 27, 2007, at 08:13, Ralf Habacker wrote:
> > Hi,
> >
> > on win32 application icon are embedded into the executable for
> > which the new macro KDE4_ADD_APP_ICON() is aimed to.
> > My question is if there are other platforms which have the need for
> > such a macro. If no this macro would be renamed to
> > KDE4_ADD_WIN32_APP_ICON() based on a  request from alex Neundorf.
>
> Hello,
>
> MacOS X has this application bundling. An application binary goes
> into foo.app/Contents/MacOS/foo and the icon goes into foo.app/
> Contents/Resources/ directory. There's foo.app/Contents/Info.plist
> XML file that tells what kind of resources (not only an application
> icon) are there in this foo.app/Contents/Resources/.
>
> It is hidden from the user. The user sees foo.app as a single file
> that can be double-clicked and launched.
>
> So yeah, pretty much KDE4/Mac would need such a CMake macro.
>
> Regards,

CMake 2.6 will have full support for frameworks.
There the "other" files are set using SET_TARGET_PROPERTIES(). This would also 
be nice for the application icons, but unfortunately set_target_properties() 
can't be used before the target is created. And after kde4_add_executable() 
there is no other macro which processes all targets.

So it indeed seems we need this macro.

Alex




More information about the kde-core-devel mailing list