locating dbus xml with pkg-config and cmake

Will Stephenson wstephenson at kde.org
Thu Apr 24 17:40:20 CEST 2008


Hi list, I decided to join.

I just created and ran into a problem while moving akonadi into kdesupport.  
The introspection xml is installed into KDE4_DBUS_INTERFACES_DIR as you would 
expect.

However, it's normal to be able to build KDE/* svn modules vs distro packaged 
kdesupport modules.  In this case those xml files are 
in /usr/share/dbus-1/interfaces, and the KDE4_ADD_DBUS_INTERFACE[S] calls in 
kdepimlibs looking always in KDE4_DBUS_INTERFACES_DIR fail.

It's clear that Akonadi as a putative cross-desktop bit of infrastructure 
should not rely on KDE4_DBUS_INTERFACES_DIR.  

My question to the list is, is there any way using cmake to a) generate a .pc 
file describing where Akonadi was installed and b) to include the location of 
dbus interface files?

Will


More information about the Kde-buildsystem mailing list