mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00

Katana (or any interface designed around key and mouse events) is not for blind people, trying to slap text-to-speech on top of it was the wrong thing to do to begin with side note: speech-dispatcher tends to hang if the output device is not configured properly (i.e. editing /etc/speech-dispatcher/speechd.conf manually) Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
143 lines
3.1 KiB
CMake
143 lines
3.1 KiB
CMake
project(kutils)
|
|
|
|
include_directories(
|
|
${KDE4_KDEUI_INCLUDES}
|
|
${KDE4_KPARTS_INCLUDES}
|
|
# keep it, required by kidletime and others
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|
|
|
|
add_subdirectory(kmediaplayer)
|
|
add_subdirectory(kexiv2)
|
|
add_subdirectory(kpasswdstore)
|
|
add_subdirectory(kpowermanager)
|
|
add_subdirectory(kdnssd)
|
|
add_subdirectory(khttp)
|
|
add_subdirectory(karchive)
|
|
add_subdirectory(kemail)
|
|
|
|
######## kidletime ####################
|
|
|
|
set(kidletime_LIB_SRCS
|
|
kidletime/kidletime.cpp
|
|
kidletime/abstractsystempoller.cpp
|
|
kidletime/widgetbasedpoller.cpp
|
|
)
|
|
|
|
if(Q_WS_X11)
|
|
if (HAVE_XSCREENSAVER)
|
|
set(kidletime_LIB_SRCS ${kidletime_LIB_SRCS}
|
|
kidletime/xscreensaverbasedpoller.cpp
|
|
)
|
|
qt4_add_dbus_interface(kidletime_LIB_SRCS
|
|
kidletime/org.freedesktop.ScreenSaver.xml
|
|
screensaver_interface
|
|
)
|
|
endif()
|
|
|
|
if(HAVE_XSYNC)
|
|
set(kidletime_LIB_SRCS
|
|
${kidletime_LIB_SRCS}
|
|
kidletime/xsyncbasedpoller.cpp
|
|
)
|
|
endif()
|
|
endif(Q_WS_X11)
|
|
|
|
add_library(kidletime ${LIBRARY_TYPE} ${kidletime_LIB_SRCS})
|
|
|
|
target_link_libraries(kidletime PUBLIC
|
|
${KDE4_KDECORE_LIBS}
|
|
${KDE4_KDEUI_LIBS}
|
|
${QT_QTGUI_LIBRARY}
|
|
)
|
|
|
|
if (Q_WS_X11)
|
|
if(HAVE_XSCREENSAVER)
|
|
target_link_libraries(kidletime PRIVATE ${X11_Xscreensaver_LIB})
|
|
endif()
|
|
|
|
if(HAVE_XSYNC)
|
|
target_link_libraries(kidletime PRIVATE ${X11_Xext_LIB})
|
|
endif()
|
|
target_link_libraries(kidletime PRIVATE ${X11_X11_LIB})
|
|
endif (Q_WS_X11)
|
|
|
|
set_target_properties(kidletime PROPERTIES
|
|
VERSION ${GENERIC_LIB_VERSION}
|
|
SOVERSION ${GENERIC_LIB_SOVERSION}
|
|
)
|
|
|
|
generate_export_header(kidletime)
|
|
|
|
install(
|
|
FILES
|
|
${CMAKE_CURRENT_BINARY_DIR}/kidletime_export.h
|
|
kidletime/kidletime.h
|
|
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}
|
|
COMPONENT Devel
|
|
)
|
|
|
|
install(
|
|
TARGETS kidletime
|
|
EXPORT kdelibsLibraryTargets
|
|
${INSTALL_TARGETS_DEFAULT_ARGS}
|
|
)
|
|
|
|
########### kcmutils ###############
|
|
|
|
set(kcmutils_LIB_SRCS
|
|
kcmoduleinfo.cpp
|
|
kcmoduleloader.cpp
|
|
kcmultidialog.cpp
|
|
kcmoduleproxy.cpp
|
|
kpluginselector.cpp
|
|
kcmodulecontainer.cpp
|
|
ksettingswidgetadaptor.cpp
|
|
ksettings/dispatcher.cpp
|
|
ksettings/dialog.cpp
|
|
ksettings/pluginpage.cpp
|
|
ksettings/componentsdialog.cpp
|
|
)
|
|
|
|
add_library(kcmutils ${LIBRARY_TYPE} ${kcmutils_LIB_SRCS})
|
|
|
|
target_link_libraries(kcmutils PUBLIC
|
|
${KDE4_KDECORE_LIBS}
|
|
${KDE4_KDEUI_LIBS}
|
|
${QT_QTGUI_LIBRARY}
|
|
)
|
|
|
|
set_target_properties(kcmutils PROPERTIES
|
|
VERSION ${GENERIC_LIB_VERSION}
|
|
SOVERSION ${GENERIC_LIB_SOVERSION}
|
|
)
|
|
|
|
generate_export_header(kcmutils)
|
|
|
|
install(
|
|
FILES
|
|
${CMAKE_CURRENT_BINARY_DIR}/kcmutils_export.h
|
|
kcmoduleinfo.h
|
|
kcmoduleloader.h
|
|
kcmultidialog.h
|
|
kcmoduleproxy.h
|
|
kpluginselector.h
|
|
kcmodulecontainer.h
|
|
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}
|
|
COMPONENT Devel
|
|
)
|
|
|
|
install(
|
|
FILES
|
|
ksettings/dispatcher.h
|
|
ksettings/dialog.h
|
|
ksettings/pluginpage.h
|
|
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/ksettings
|
|
COMPONENT Devel
|
|
)
|
|
|
|
install(
|
|
TARGETS kcmutils
|
|
EXPORT kdelibsLibraryTargets
|
|
${INSTALL_TARGETS_DEFAULT_ARGS}
|
|
)
|