Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
1 | set(kconfigwidgets_SRCS | 1 | set(kconfigwidgets_SRCS | ||
---|---|---|---|---|---|
2 | kcodecaction.cpp | 2 | kcodecaction.cpp | ||
3 | kcolorscheme.cpp | 3 | kcolorscheme.cpp | ||
4 | kcolorschememanager.cpp | 4 | kcolorschememanager.cpp | ||
5 | kconfigdialog.cpp | 5 | kconfigdialog.cpp | ||
6 | kconfigviewstatesaver.cpp | 6 | kconfigviewstatesaver.cpp | ||
7 | kconfigdialogmanager.cpp | 7 | kconfigdialogmanager.cpp | ||
8 | kcmodule.cpp | 8 | kcmodule.cpp | ||
9 | khelpclient.cpp | 9 | khelpclient.cpp | ||
10 | klanguagebutton.cpp | 10 | klanguagebutton.cpp | ||
11 | klanguagename.cpp | 11 | klanguagename.cpp | ||
12 | kpastetextaction.cpp | | |||
13 | krecentfilesaction.cpp | 12 | krecentfilesaction.cpp | ||
14 | kstandardaction.cpp | 13 | kstandardaction.cpp | ||
15 | ktipdialog.cpp | 14 | ktipdialog.cpp | ||
16 | ) | 15 | ) | ||
17 | ecm_qt_declare_logging_category(kconfigwidgets_SRCS HEADER kconfigwidgets_debug.h IDENTIFIER KCONFIG_WIDGETS_LOG CATEGORY_NAME kf5.kconfigwidgets) | 16 | ecm_qt_declare_logging_category(kconfigwidgets_SRCS HEADER kconfigwidgets_debug.h IDENTIFIER KCONFIG_WIDGETS_LOG CATEGORY_NAME kf5.kconfigwidgets) | ||
17 | if (TARGET Qt5::DBus) | ||||
18 | list(APPEND kconfigwidgets_SRCS kpastetextaction.cpp) | ||||
19 | endif() | ||||
18 | 20 | | |||
19 | qt5_add_resources(kconfigwidgets_SRCS kconfigwidgets.qrc) | 21 | qt5_add_resources(kconfigwidgets_SRCS kconfigwidgets.qrc) | ||
20 | 22 | | |||
21 | add_library(KF5ConfigWidgets ${kconfigwidgets_SRCS}) | 23 | add_library(KF5ConfigWidgets ${kconfigwidgets_SRCS}) | ||
22 | generate_export_header(KF5ConfigWidgets BASE_NAME KConfigWidgets) | 24 | generate_export_header(KF5ConfigWidgets BASE_NAME KConfigWidgets) | ||
23 | add_library(KF5::ConfigWidgets ALIAS KF5ConfigWidgets) | 25 | add_library(KF5::ConfigWidgets ALIAS KF5ConfigWidgets) | ||
24 | 26 | | |||
25 | target_include_directories(KF5ConfigWidgets INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/KConfigWidgets>") | 27 | target_include_directories(KF5ConfigWidgets INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/KConfigWidgets>") | ||
26 | 28 | | |||
27 | target_link_libraries(KF5ConfigWidgets | 29 | target_link_libraries(KF5ConfigWidgets | ||
28 | PUBLIC | 30 | PUBLIC | ||
29 | KF5::Codecs # KCodecActions uses KCharsets, KEncodingProber | 31 | KF5::Codecs # KCodecActions uses KCharsets, KEncodingProber | ||
30 | KF5::WidgetsAddons # For K*Action, KPage*, KViewStateSerializer, KAcceleratorManager, K*GuiItem | 32 | KF5::WidgetsAddons # For K*Action, KPage*, KViewStateSerializer, KAcceleratorManager, K*GuiItem | ||
31 | KF5::ConfigGui # KStandardAction uses KStandardShortcut | 33 | KF5::ConfigGui # KStandardAction uses KStandardShortcut | ||
32 | KF5::Auth # KCModule uses KAuth::Action | | |||
33 | PRIVATE | 34 | PRIVATE | ||
34 | Qt5::DBus # KPasteTextAction talks to Klipper via DBus | | |||
35 | KF5::CoreAddons # KCModule uses KAboutData, KTipDialog uses KRandom | 35 | KF5::CoreAddons # KCModule uses KAboutData, KTipDialog uses KRandom | ||
36 | KF5::GuiAddons # KColorScheme uses KColorUtils | 36 | KF5::GuiAddons # KColorScheme uses KColorUtils | ||
37 | KF5::I18n # For action and widget texts | 37 | KF5::I18n # For action and widget texts | ||
38 | ) | 38 | ) | ||
39 | if (TARGET KF5::Auth) | ||||
40 | target_link_libraries(KF5ConfigWidgets PUBLIC KF5::Auth) # KCModule uses KAuth::Action | ||||
41 | else() | ||||
42 | target_compile_definitions(KF5ConfigWidgets PUBLIC -DKCONFIGWIDGETS_NO_KAUTH) | ||||
43 | endif() | ||||
44 | if (TARGET Qt5::DBus) | ||||
45 | target_link_libraries(KF5ConfigWidgets PRIVATE Qt5::DBus) # KPasteTextAction talks to Klipper via DBus | ||||
46 | endif() | ||||
39 | 47 | | |||
40 | set_target_properties(KF5ConfigWidgets PROPERTIES VERSION ${KCONFIGWIDGETS_VERSION_STRING} | 48 | set_target_properties(KF5ConfigWidgets PROPERTIES VERSION ${KCONFIGWIDGETS_VERSION_STRING} | ||
41 | SOVERSION ${KCONFIGWIDGETS_SOVERSION} | 49 | SOVERSION ${KCONFIGWIDGETS_SOVERSION} | ||
42 | EXPORT_NAME ConfigWidgets | 50 | EXPORT_NAME ConfigWidgets | ||
43 | ) | 51 | ) | ||
44 | 52 | | |||
45 | ecm_generate_headers(KConfigWidgets_HEADERS | 53 | ecm_generate_headers(KConfigWidgets_HEADERS | ||
46 | HEADER_NAMES | 54 | HEADER_NAMES | ||
▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines |