How to use QDBUS_ADD_INTERFACES cmake macro?
Gary Cramblitt
garycramblitt at comcast.net
Sat Jun 17 17:44:07 BST 2006
On Saturday 17 June 2006 05:22, Volker Krause wrote:
> The macro didn't handle the org.foo.Bar.xml filenames right, I've just
> fixed that in trunk. It should now generate a kspeechinterface.h/.cpp in
> your case.
Thank you Volker. I copied latest QtDBusMacros.cmake from kdelibs to
kdelibs4_snapshot and installed. And now I have the following in my
CMakeLists.txt:
----
set(kttsmgr_SRCS
kttsmgr.cpp
${CMAKE_CURRENT_BINARY_DIR}/kspeechinterface.cpp )
qdbus_add_interfaces(${kttsmgr_SRCS} org.kde.KSpeech.xml )
kde4_automoc(${kttsmgr_SRCS})
kde4_add_executable(kttsmgr ${kttsmgr_SRCS})
target_link_libraries(kttsmgr
${KDE4_KDECORE_LIBS}
${KDE4_KDEUI_LIBS}
${KDE4_KUTILS_LIBS} )
install_targets(/bin kttsmgr )
----
This works beautifully. :)
Next question: What should I put in the
kdelibs/interfaces/kspeech/CMakeLists.txt to install the org.kde.KSpeech.xml
file so apps can use it like I've done above? ATM, I've put a copy of
org.kde.KSpeech.xml in the kttsmgr source directory.
--
Gary Cramblitt (aka PhantomsDad)
KDE Text-to-Speech Maintainer
http://accessibility.kde.org/developer/kttsd/index.php
More information about the kde-core-devel
mailing list