diff --git a/kcms/colors/CMakeLists.txt b/kcms/colors/CMakeLists.txt index 43b5b284b..fa6702656 100644 --- a/kcms/colors/CMakeLists.txt +++ b/kcms/colors/CMakeLists.txt @@ -1,45 +1,45 @@ # KI18N Translation Domain for this library add_definitions(-DTRANSLATION_DOMAIN=\"kcm_colors\") set(kcm_colors_SRCS ../krdb/krdb.cpp colors.cpp colorsmodel.cpp filterproxymodel.cpp ) # needed for krdb qt5_add_dbus_interface(kcm_colors_SRCS ${KINIT_DBUS_INTERFACES_DIR}/kf5_org.kde.KLauncher.xml klauncher_iface) add_library(kcm_colors MODULE ${kcm_colors_SRCS}) target_link_libraries(kcm_colors Qt5::DBus KF5::KCMUtils KF5::CoreAddons KF5::Declarative KF5::GuiAddons KF5::I18n KF5::KIOCore KF5::KIOWidgets KF5::NewStuff KF5::QuickAddons KF5::WindowSystem ) if(X11_FOUND) target_link_libraries(kcm_colors ${X11_LIBRARIES} Qt5::X11Extras) endif() kcoreaddons_desktop_to_json(kcm_colors "kcm_colors.desktop") install(FILES kcm_colors.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) install(TARGETS kcm_colors DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms) -install(FILES colorschemes.knsrc DESTINATION ${KDE_INSTALL_CONFDIR}) +install(FILES colorschemes.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR}) kpackage_install_package(package kcm_colors kcms) # built-in color schemes file(GLOB schemefiles schemes/*.colors) install( FILES ${schemefiles} DESTINATION ${KDE_INSTALL_DATADIR}/color-schemes ) add_subdirectory(editor) diff --git a/kcms/cursortheme/CMakeLists.txt b/kcms/cursortheme/CMakeLists.txt index e1f3452d1..606696ab5 100644 --- a/kcms/cursortheme/CMakeLists.txt +++ b/kcms/cursortheme/CMakeLists.txt @@ -1,63 +1,63 @@ # KI18N Translation Domain for this library add_definitions(-DTRANSLATION_DOMAIN=\"kcm_cursortheme\") include_directories( ${LIBUSB_INCLUDE_DIR} ) if(X11_Xcursor_FOUND) set( libnoinst_SRCS xcursor/thememodel.cpp xcursor/cursortheme.cpp xcursor/xcursortheme.cpp xcursor/previewwidget.cpp xcursor/sortproxymodel.cpp ../krdb/krdb.cpp ) include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/xcursor/ ) else() set( libnoinst_SRCS core/themepage.cpp ) include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/core/ ) endif() set(klauncher_xml ${KINIT_DBUS_INTERFACES_DIR}/kf5_org.kde.KLauncher.xml) qt5_add_dbus_interface(libnoinst_SRCS ${klauncher_xml} klauncher_iface) ########### next target ############### set(kcm_cursortheme_PART_SRCS kcmcursortheme.cpp ${libnoinst_SRCS}) add_library(kcm_cursortheme MODULE ${kcm_cursortheme_PART_SRCS}) target_link_libraries(kcm_cursortheme Qt5::DBus Qt5::X11Extras Qt5::Quick KF5::Archive KF5::KCMUtils KF5::I18n KF5::KIOCore KF5::KIOWidgets KF5::KDELibs4Support KF5::NewStuff KF5::QuickAddons ${X11_LIBRARIES} XCB::XCB ) if (X11_Xcursor_FOUND) target_link_libraries(kcm_cursortheme ${X11_Xcursor_LIB}) endif () if (X11_Xfixes_FOUND) target_link_libraries(kcm_cursortheme ${X11_Xfixes_LIB}) endif () install(TARGETS kcm_cursortheme DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms ) kcoreaddons_desktop_to_json(kcm_cursortheme "kcm_cursortheme.desktop") ########### install files ############### install( FILES kcm_cursortheme.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} ) -install( FILES xcursor/xcursor.knsrc DESTINATION ${KDE_INSTALL_CONFDIR} ) +install( FILES xcursor/xcursor.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR} ) kpackage_install_package(package kcm_cursortheme kcms) diff --git a/kcms/desktoptheme/CMakeLists.txt b/kcms/desktoptheme/CMakeLists.txt index 804283a74..63b3962d9 100644 --- a/kcms/desktoptheme/CMakeLists.txt +++ b/kcms/desktoptheme/CMakeLists.txt @@ -1,29 +1,29 @@ # KI18N Translation Domain for this library add_definitions(-DTRANSLATION_DOMAIN=\"kcm_desktoptheme\") set(kcm_desktoptheme_SRCS kcm.cpp ) add_library(kcm_desktoptheme MODULE ${kcm_desktoptheme_SRCS}) target_link_libraries(kcm_desktoptheme KF5::CoreAddons KF5::KCMUtils KF5::KIOCore KF5::KIOWidgets KF5::I18n KF5::Plasma KF5::Declarative KF5::QuickAddons KF5::NewStuff ) kcoreaddons_desktop_to_json(kcm_desktoptheme "kcm_desktoptheme.desktop" SERVICE_TYPES kcmodule.desktop) #this desktop file is installed only for retrocompatibility with sycoca install(FILES kcm_desktoptheme.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) -install(FILES plasma-themes.knsrc DESTINATION ${KDE_INSTALL_CONFDIR}) +install(FILES plasma-themes.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR}) install(TARGETS kcm_desktoptheme DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms) kpackage_install_package(package kcm_desktoptheme kcms) diff --git a/kcms/emoticons/CMakeLists.txt b/kcms/emoticons/CMakeLists.txt index 4d87e8156..ebf8edce7 100644 --- a/kcms/emoticons/CMakeLists.txt +++ b/kcms/emoticons/CMakeLists.txt @@ -1,17 +1,17 @@ # KI18N Translation Domain for this library add_definitions(-DTRANSLATION_DOMAIN=\"kcm5_emoticons\") set(kcmemoticons_SRCS emoticonslist.cpp) ki18n_wrap_ui(kcmemoticons_SRCS emoticonslist.ui) add_library(kcm_emoticons MODULE ${kcmemoticons_SRCS}) target_link_libraries(kcm_emoticons KF5::NewStuff KF5::KDELibs4Support KF5::Emoticons) install(TARGETS kcm_emoticons DESTINATION ${KDE_INSTALL_PLUGINDIR} ) ########### install files ############### install( FILES emoticons.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} ) -install( FILES emoticons.knsrc DESTINATION ${KDE_INSTALL_CONFDIR} ) +install( FILES emoticons.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR} ) diff --git a/kcms/icons/CMakeLists.txt b/kcms/icons/CMakeLists.txt index 07e8af6ac..5805ae3d9 100644 --- a/kcms/icons/CMakeLists.txt +++ b/kcms/icons/CMakeLists.txt @@ -1,35 +1,35 @@ add_definitions(-DTRANSLATION_DOMAIN=\"kcm5_icons\") ########### next target ############### set(kcm_icons_PART_SRCS main.cpp iconsmodel.cpp) add_library(kcm_icons MODULE ${kcm_icons_PART_SRCS}) target_link_libraries(kcm_icons Qt5::Widgets Qt5::Svg KF5::KCMUtils KF5::I18n KF5::IconThemes KF5::Archive KF5::NewStuff KF5::KIOWidgets KF5::QuickAddons ) file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/config.h CONTENT "#define CMAKE_INSTALL_FULL_LIBEXECDIR \"${CMAKE_INSTALL_FULL_LIBEXECDIR}\"") add_executable(plasma-changeicons changeicons.cpp) target_link_libraries(plasma-changeicons PRIVATE Qt5::Core KF5::KIOWidgets KF5::IconThemes) kcoreaddons_desktop_to_json(kcm_icons "kcm_icons.desktop") install(FILES kcm_icons.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) install(TARGETS kcm_icons DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/icons.knsrc ${CMAKE_BINARY_DIR}/icons.knsrc) -install( FILES ${CMAKE_BINARY_DIR}/icons.knsrc DESTINATION ${KDE_INSTALL_CONFDIR} ) +install( FILES ${CMAKE_BINARY_DIR}/icons.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR} ) install(TARGETS plasma-changeicons DESTINATION ${KDE_INSTALL_LIBEXECDIR} ) kpackage_install_package(package kcm5_icons kcms) diff --git a/kcms/kfontinst/kcmfontinst/CMakeLists.txt b/kcms/kfontinst/kcmfontinst/CMakeLists.txt index d890936d0..96ab28791 100644 --- a/kcms/kfontinst/kcmfontinst/CMakeLists.txt +++ b/kcms/kfontinst/kcmfontinst/CMakeLists.txt @@ -1,36 +1,36 @@ set(kcm_fontinst_PART_SRCS ${libkfontinstview_SRCS} ${libkfontinstjobrunner_SRCS} ${libkfontinstdbusiface_SRCS} DuplicatesDialog.cpp FontList.cpp GroupList.cpp KCmFontInst.cpp PrintDialog.cpp FontFilter.cpp FontFilterProxyStyle.cpp FcQuery.cpp PreviewList.cpp) # qt5_add_dbus_interface(kcm_fontinst_PART_SRCS ../dbus/org.kde.fontinst.xml FontinstIface) add_library(kcm_fontinst MODULE ${kcm_fontinst_PART_SRCS}) target_link_libraries(kcm_fontinst KF5::Archive KF5::KCMUtils KF5::IconThemes KF5::KIOCore KF5::KIOWidgets KF5::XmlGui KF5::NewStuff kfontinstui kfontinst ${X11_LIBRARIES} ) install(TARGETS kcm_fontinst DESTINATION ${KDE_INSTALL_PLUGINDIR} ) install( FILES fontinst.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} ) -install( FILES kfontinst.knsrc DESTINATION ${KDE_INSTALL_CONFDIR} ) +install( FILES kfontinst.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR} ) ecm_install_icons( ICONS 16-actions-addfont.png 16-actions-disablefont.png 16-actions-enablefont.png 16-actions-fontstatus.png 22-actions-addfont.png 22-actions-disablefont.png 22-actions-enablefont.png 22-actions-fontstatus.png 16-actions-addfont.png DESTINATION ${KDE_INSTALL_DATADIR}/kfontinst/icons THEME hicolor) diff --git a/kcms/ksplash/CMakeLists.txt b/kcms/ksplash/CMakeLists.txt index cbeef8a3a..1dd9af5e6 100644 --- a/kcms/ksplash/CMakeLists.txt +++ b/kcms/ksplash/CMakeLists.txt @@ -1,31 +1,31 @@ # KI18N Translation Domain for this library add_definitions(-DTRANSLATION_DOMAIN=\"kcm_splashscreen\") set(kcm_splashscreen_SRCS kcm.cpp ) add_library(kcm_splashscreen MODULE ${kcm_splashscreen_SRCS}) target_link_libraries(kcm_splashscreen KF5::KIOWidgets KF5::CoreAddons KF5::QuickAddons KF5::I18n KF5::Plasma KF5::PlasmaQuick KF5::NewStuff Qt5::DBus Qt5::Widgets Qt5::QuickWidgets ) kcoreaddons_desktop_to_json(kcm_splashscreen "kcm_splashscreen.desktop" SERVICE_TYPES kcmodule.desktop) #this desktop file is installed only for retrocompatibility with sycoca install(FILES kcm_splashscreen.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) install(TARGETS kcm_splashscreen DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms) -install( FILES ksplash.knsrc DESTINATION ${KDE_INSTALL_CONFDIR} ) +install( FILES ksplash.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR} ) kpackage_install_package(package kcm_splashscreen kcms) diff --git a/kcms/lookandfeel/CMakeLists.txt b/kcms/lookandfeel/CMakeLists.txt index 2ff0a6d24..f6e5a73ee 100644 --- a/kcms/lookandfeel/CMakeLists.txt +++ b/kcms/lookandfeel/CMakeLists.txt @@ -1,107 +1,107 @@ # KI18N Translation Domain for this library add_definitions(-DTRANSLATION_DOMAIN=\"kcm_lookandfeel\") configure_file (config-kcm.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kcm.h ) set(kcm_lookandfeel_SRCS kcmmain.cpp kcm.cpp ../krdb/krdb.cpp ../cursortheme/xcursor/cursortheme.cpp ../cursortheme/xcursor/xcursortheme.cpp ) set(klauncher_xml ${KINIT_DBUS_INTERFACES_DIR}/kf5_org.kde.KLauncher.xml) qt5_add_dbus_interface(kcm_lookandfeel_SRCS ${klauncher_xml} klauncher_iface) add_library(kcm_lookandfeel MODULE ${kcm_lookandfeel_SRCS}) target_link_libraries(kcm_lookandfeel KF5::KIOWidgets KF5::CoreAddons KF5::KCMUtils KF5::I18n KF5::Plasma KF5::PlasmaQuick KF5::KDELibs4Support KF5::Declarative KF5::QuickAddons KF5::NewStuff Qt5::DBus Qt5::Widgets Qt5::QuickWidgets ${X11_LIBRARIES} ) if(X11_FOUND) target_link_libraries(kcm_lookandfeel Qt5::X11Extras) endif() if (X11_Xcursor_FOUND) target_link_libraries(kcm_lookandfeel ${X11_Xcursor_LIB}) endif () if (X11_Xfixes_FOUND) target_link_libraries(kcm_lookandfeel ${X11_Xfixes_LIB}) endif () kcoreaddons_desktop_to_json(kcm_lookandfeel "kcm_lookandfeel.desktop" SERVICE_TYPES kcmodule.desktop) #this desktop file is installed only for retrocompatibility with sycoca install(FILES kcm_lookandfeel.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) install(TARGETS kcm_lookandfeel DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms) -install(FILES lookandfeel.knsrc DESTINATION ${KDE_INSTALL_CONFDIR}) +install(FILES lookandfeel.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR}) if(BUILD_TESTING) find_package(Qt5Test ${QT_MIN_VERSION} CONFIG REQUIRED) add_subdirectory(autotests) endif() kpackage_install_package(package kcm_lookandfeel kcms) ###### Command line tool set(lookandfeeltool_SRCS lnftool.cpp # TODO: load kcm plugin instead of using code copy kcm.cpp ../krdb/krdb.cpp ../cursortheme/xcursor/cursortheme.cpp ../cursortheme/xcursor/xcursortheme.cpp ) qt5_add_dbus_interface(lookandfeeltool_SRCS ${klauncher_xml} klauncher_iface) add_executable(lookandfeeltool ${lookandfeeltool_SRCS}) target_link_libraries(lookandfeeltool KF5::KIOWidgets KF5::CoreAddons KF5::KCMUtils KF5::I18n #TODO:kpackage KF5::Plasma KF5::PlasmaQuick KF5::KDELibs4Support KF5::Declarative KF5::QuickAddons KF5::NewStuff Qt5::DBus Qt5::Widgets Qt5::QuickWidgets ${X11_LIBRARIES} ) if(X11_FOUND) target_link_libraries(lookandfeeltool Qt5::X11Extras) endif() if (X11_Xcursor_FOUND) target_link_libraries(lookandfeeltool ${X11_Xcursor_LIB}) endif () if (X11_Xfixes_FOUND) target_link_libraries(lookandfeeltool ${X11_Xfixes_LIB}) endif () install( TARGETS lookandfeeltool ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )