3 add_definitions (-DQT3_SUPPORT)
5 ${CMAKE_SOURCE_DIR}/kmouth/phrasebook/phrasetree.cpp
6 ${CMAKE_SOURCE_DIR}/kmouth/phrasebook/phrasebookparser.cpp
7 ${CMAKE_SOURCE_DIR}/kmouth/phrasebook/phrasebookdialog.cpp
8 ${CMAKE_SOURCE_DIR}/kmouth/phrasebook/phrasebook.cpp
11 kde4_add_ui_files(libphrasebook_SRCS ${CMAKE_SOURCE_DIR}/kmouth/phrasebook/buttonboxui.ui)
13 set(libwordcompletion_SRCS
14 ${CMAKE_SOURCE_DIR}/kmouth/wordcompletion/wordlist.cpp
15 ${CMAKE_SOURCE_DIR}/kmouth/wordcompletion/wordcompletion.cpp
16 ${CMAKE_SOURCE_DIR}/kmouth/wordcompletion/wordcompletionwidget.cpp
17 ${CMAKE_SOURCE_DIR}/kmouth/wordcompletion/dictionarycreationwizard.cpp
20 kde4_add_ui_files(libwordcompletion_SRCS
21 ${CMAKE_SOURCE_DIR}/kmouth/wordcompletion/creationsourceui.ui
22 ${CMAKE_SOURCE_DIR}/kmouth/wordcompletion/creationsourcedetailsui.ui
23 ${CMAKE_SOURCE_DIR}/kmouth/wordcompletion/kdedocsourceui.ui
24 ${CMAKE_SOURCE_DIR}/kmouth/wordcompletion/wordcompletionui.ui )
26 add_subdirectory( icons )
27 add_subdirectory( phrasebook )
28 add_subdirectory( wordcompletion )
29 add_subdirectory( books )
31 include_directories(${CMAKE_SOURCE_DIR}/kmouth/wordcompletion/ )
34 ########### next target ###############
36 set(kmouth_SRCS ${libwordcompletion_SRCS} ${libphrasebook_SRCS}
37 texttospeechconfigurationwidget.cpp
43 texttospeechsystem.cpp
48 set(kspeech_xml ${DBUS_INTERFACES_INSTALL_DIR}/org.kde.KSpeech.xml)
49 qt4_add_dbus_interface(kmouth_SRCS ${kspeech_xml} kspeech_interface)
51 kde4_add_ui_files(kmouth_SRCS preferencesui.ui texttospeechconfigurationui.ui )
53 kde4_add_executable(kmouth ${kmouth_SRCS})
55 target_link_libraries(kmouth ${KDE4_KDE3SUPPORT_LIBS} ${KDE4_KDEPRINT_LIBS} )
57 install(TARGETS kmouth DESTINATION ${BIN_INSTALL_DIR} )
60 ########### install files ###############
62 install( FILES kmouth.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
63 install( FILES kmouthrc DESTINATION ${CONFIG_INSTALL_DIR} )
64 install( FILES kmouthui.rc DESTINATION ${DATA_INSTALL_DIR}/kmouth )