howto install rules ?

David Faure faure at kde.org
Thu Jan 12 23:53:43 CET 2006


On Thursday 12 January 2006 23:00, Alexander Neundorf wrote:
> Hi,
> 
> with cmake install rules usually look this way:
> 
> 1) INSTALL_FILES( /share/applications/kde FILES kpager.desktop )
> The path is relative to the installation prefix.
> Is it necessary to use a variable for this path ?

Yes, see ./configure --datadir=...
It is known that some distributions install things with another hierarchy
than the default; at least debian used to do it for a long time, don't know
if that's still the case.

> 2) This would look like this:
> INSTALL_FILES( ${KDE4_APP_DIR} FILES kpager.desktop )

Looks ok to me. Why KDE4 and not just KDE?

> 3) A macro which hides the dir completely would also be possible:
> KDE4_INSTALL_DESKTOP_FILES(kpager.desktop)

Nah, there would be too many combination of those.
And not all desktop files are applications, so the name doesn't work anyway.

PS: about upper/lowercase: add_library has my vote (given that I guess
we can't have AddLibrary without underscore :)).
Camel_Case looks too weird due to the underscore, and UPPER_CASE looks like ugly macros / shouting.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).



More information about the Kde-buildsystem mailing list