CMake access to kspeech.h

Gary Cramblitt garycramblitt at comcast.net
Sat Apr 15 16:47:22 BST 2006


On Thursday 13 April 2006 14:12, David Faure wrote:
> On Thu, Apr 13, 2006 at 07:09:01PM +0100, David Jarvie wrote:
> > Which KDE4_*_LIBS CMake variable should be used to locate kspeech.h,
> > which is in the interfaces module of kdelibs? It's not clear from the
> > comments in FindKDE4Internal.cmake.
>
> The question doesn't make sense. kspeech.h is a header, installed in the
> kde include dir, so you simply use #include <kspeech.h> to use the header.
> About libs: there is none. This header is a pure-virtual interface, it
> doesn't come with any compiled code.

If one uses the dcop2idl compiler, it does generate marshaling code for you.

The KTTS backend is in kdeaccessibility, but AFAIK, is not working right now.

DJ, you're probably looking for something like this in your CMakeLists.txt 
file:

set(kcm_kttsd_PART_SRCS
   kcmkttsmgr.cpp
   addtalker.cpp
   selectevent.cpp
   kwidgetprobe.cpp )

kde4_automoc(${kcm_kttsd_PART_SRCS})

kde4_add_dcop_skels(kcm_kttsd_PART_SRCS 
${CMAKE_INSTALL_PREFIX}/include/kspeechsink.h )

kde4_add_dcop_stubs(kcm_kttsd_PART_SRCS 
${CMAKE_INSTALL_PREFIX}/include/kspeech.h )


-- 
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