2014-11-13 01:04:59 +02:00
|
|
|
project(kutils)
|
2015-11-02 19:10:29 +02:00
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${KDE4_KDEUI_INCLUDES}
|
|
|
|
${KDE4_KPARTS_INCLUDES}
|
2016-03-28 04:10:43 +00:00
|
|
|
# keep it, required by kemoticons and others
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
2015-11-02 19:10:29 +02:00
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2016-03-14 21:37:05 +00:00
|
|
|
add_subdirectory(kmediaplayer)
|
|
|
|
|
2014-11-13 01:04:59 +02:00
|
|
|
########### kemoticons ################
|
2015-11-02 19:10:29 +02:00
|
|
|
|
2014-11-13 01:04:59 +02:00
|
|
|
add_subdirectory(kemoticons)
|
|
|
|
|
|
|
|
set(kemoticons_LIB_SRCS
|
|
|
|
kemoticons/kemoticons.cpp
|
|
|
|
kemoticons/kemoticonstheme.cpp
|
|
|
|
kemoticons/kemoticonsprovider.cpp
|
|
|
|
)
|
|
|
|
|
2015-09-01 01:05:33 +03:00
|
|
|
add_library(kemoticons ${LIBRARY_TYPE} ${kemoticons_LIB_SRCS})
|
2015-11-02 19:10:29 +02:00
|
|
|
|
|
|
|
target_link_libraries(kemoticons ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS})
|
|
|
|
|
2014-11-13 01:04:59 +02:00
|
|
|
set_target_properties(kemoticons PROPERTIES
|
2015-11-02 19:10:29 +02:00
|
|
|
VERSION ${GENERIC_LIB_VERSION}
|
|
|
|
SOVERSION ${GENERIC_LIB_SOVERSION}
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-11-02 19:10:29 +02:00
|
|
|
install(
|
|
|
|
FILES
|
|
|
|
kemoticons/kemoticonsTheme.desktop
|
|
|
|
DESTINATION ${SERVICETYPES_INSTALL_DIR}
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2016-04-27 18:43:11 +00:00
|
|
|
generate_export_header(kemoticons)
|
|
|
|
|
2015-11-02 19:10:29 +02:00
|
|
|
install(
|
|
|
|
FILES
|
2016-04-27 18:43:11 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/kemoticons_export.h
|
2014-11-13 01:04:59 +02:00
|
|
|
kemoticons/kemoticons.h
|
|
|
|
kemoticons/kemoticonstheme.h
|
|
|
|
kemoticons/kemoticonsprovider.h
|
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}
|
|
|
|
COMPONENT Devel
|
|
|
|
)
|
|
|
|
|
2015-11-02 19:10:29 +02:00
|
|
|
install(
|
|
|
|
TARGETS kemoticons
|
|
|
|
EXPORT kdelibsLibraryTargets
|
|
|
|
${INSTALL_TARGETS_DEFAULT_ARGS}
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
######## kidletime ####################
|
2015-11-02 19:10:29 +02:00
|
|
|
|
|
|
|
configure_file(
|
|
|
|
kidletime/config-kidletime.h.cmake
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/config-kidletime.h
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
set(kidletime_LIB_SRCS
|
|
|
|
kidletime/kidletime.cpp
|
|
|
|
kidletime/abstractsystempoller.cpp
|
|
|
|
kidletime/widgetbasedpoller.cpp
|
|
|
|
)
|
|
|
|
|
2015-11-02 19:10:29 +02:00
|
|
|
if(Q_WS_X11)
|
2014-11-13 01:04:59 +02:00
|
|
|
if (HAVE_XSCREENSAVER)
|
2015-11-02 19:10:29 +02:00
|
|
|
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)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-09-01 01:05:33 +03:00
|
|
|
add_library(kidletime ${LIBRARY_TYPE} ${kidletime_LIB_SRCS})
|
2015-11-02 19:10:29 +02:00
|
|
|
|
|
|
|
target_link_libraries(kidletime
|
|
|
|
${KDE4_KDECORE_LIBS}
|
|
|
|
${KDE4_KDEUI_LIBS}
|
|
|
|
${QT_QTGUI_LIBRARY}
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
if (Q_WS_X11)
|
2016-09-03 00:32:29 +00:00
|
|
|
if(HAVE_XSCREENSAVER)
|
|
|
|
target_link_libraries(kidletime ${X11_Xscreensaver_LIB})
|
|
|
|
endif (HAVE_XSCREENSAVER)
|
|
|
|
|
|
|
|
if(HAVE_XSYNC)
|
|
|
|
target_link_libraries(kidletime ${X11_Xext_LIB})
|
|
|
|
endif()
|
|
|
|
target_link_libraries(kidletime ${X11_LIBRARIES})
|
2014-11-13 01:04:59 +02:00
|
|
|
endif (Q_WS_X11)
|
|
|
|
|
|
|
|
set_target_properties(kidletime PROPERTIES
|
2015-11-02 19:10:29 +02:00
|
|
|
VERSION ${GENERIC_LIB_VERSION}
|
|
|
|
SOVERSION ${GENERIC_LIB_SOVERSION}
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2016-04-27 18:43:11 +00:00
|
|
|
generate_export_header(kidletime)
|
|
|
|
|
2015-11-02 19:10:29 +02:00
|
|
|
install(
|
|
|
|
FILES
|
2016-04-27 18:43:11 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/kidletime_export.h
|
2015-11-02 19:10:29 +02:00
|
|
|
kidletime/kidletime.h
|
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}
|
|
|
|
COMPONENT Devel
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-11-02 19:10:29 +02:00
|
|
|
install(
|
|
|
|
TARGETS kidletime
|
|
|
|
EXPORT kdelibsLibraryTargets
|
|
|
|
${INSTALL_TARGETS_DEFAULT_ARGS}
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
########### kcmutils ###############
|
2015-11-02 19:10:29 +02:00
|
|
|
|
2014-11-13 01:04:59 +02:00
|
|
|
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
|
|
|
|
)
|
|
|
|
|
2015-09-01 01:05:33 +03:00
|
|
|
add_library(kcmutils ${LIBRARY_TYPE} ${kcmutils_LIB_SRCS})
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-11-02 19:10:29 +02:00
|
|
|
target_link_libraries(kcmutils
|
|
|
|
${KDE4_KDECORE_LIBS}
|
|
|
|
${KDE4_KDEUI_LIBS}
|
|
|
|
${QT_QTGUI_LIBRARY}
|
|
|
|
)
|
|
|
|
|
2014-11-13 01:04:59 +02:00
|
|
|
set_target_properties(kcmutils PROPERTIES
|
2015-11-02 19:10:29 +02:00
|
|
|
VERSION ${GENERIC_LIB_VERSION}
|
|
|
|
SOVERSION ${GENERIC_LIB_SOVERSION}
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2016-04-27 21:48:43 +00:00
|
|
|
generate_export_header(kcmutils)
|
|
|
|
|
2015-11-02 19:10:29 +02:00
|
|
|
install(
|
|
|
|
FILES
|
2016-04-27 21:48:43 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/kcmutils_export.h
|
2015-08-28 04:26:19 +03:00
|
|
|
kcmoduleinfo.h
|
|
|
|
kcmoduleloader.h
|
|
|
|
kcmultidialog.h
|
|
|
|
kcmoduleproxy.h
|
|
|
|
kpluginselector.h
|
|
|
|
kcmodulecontainer.h
|
2015-11-02 19:10:29 +02:00
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}
|
|
|
|
COMPONENT Devel
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-11-02 19:10:29 +02:00
|
|
|
install(
|
|
|
|
FILES
|
|
|
|
ksettings/dispatcher.h
|
|
|
|
ksettings/dialog.h
|
|
|
|
ksettings/pluginpage.h
|
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/ksettings
|
|
|
|
COMPONENT Devel
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-11-02 19:10:29 +02:00
|
|
|
install(
|
|
|
|
TARGETS kcmutils
|
|
|
|
EXPORT kdelibsLibraryTargets
|
|
|
|
${INSTALL_TARGETS_DEFAULT_ARGS}
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
########### kprintutils ###############
|
|
|
|
|
2015-11-02 19:10:29 +02:00
|
|
|
add_library(kprintutils ${LIBRARY_TYPE} kprintpreview.cpp)
|
|
|
|
|
2016-09-03 00:32:29 +00:00
|
|
|
target_link_libraries(kprintutils
|
|
|
|
${KDE4_KDECORE_LIBS}
|
|
|
|
${KDE4_KDEUI_LIBS}
|
|
|
|
${KDE4_KPARTS_LIBS}
|
|
|
|
)
|
2015-11-02 19:10:29 +02:00
|
|
|
|
2014-11-13 01:04:59 +02:00
|
|
|
set_target_properties(kprintutils PROPERTIES
|
2015-09-01 01:05:33 +03:00
|
|
|
VERSION ${GENERIC_LIB_VERSION}
|
|
|
|
SOVERSION ${GENERIC_LIB_SOVERSION}
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2016-04-27 21:48:43 +00:00
|
|
|
generate_export_header(kprintutils)
|
|
|
|
|
2015-11-02 19:10:29 +02:00
|
|
|
install(
|
|
|
|
FILES
|
2016-04-27 21:48:43 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/kprintutils_export.h
|
2015-08-28 04:26:19 +03:00
|
|
|
kprintpreview.h
|
2015-09-01 01:05:33 +03:00
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}
|
|
|
|
COMPONENT Devel
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-11-02 19:10:29 +02:00
|
|
|
install(
|
|
|
|
TARGETS kprintutils
|
|
|
|
EXPORT kdelibsLibraryTargets
|
|
|
|
${INSTALL_TARGETS_DEFAULT_ARGS}
|
|
|
|
)
|