Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Line(s) | 64 | if (TARGET Qt5::DBus) | |||
---|---|---|---|---|---|
78 | qt5_add_dbus_interface(knotifications_SRCS ${statusnotifierwatcher_xml} statusnotifierwatcher_interface) | 78 | qt5_add_dbus_interface(knotifications_SRCS ${statusnotifierwatcher_xml} statusnotifierwatcher_interface) | ||
79 | set(notifications_xml org.freedesktop.Notifications.xml) | 79 | set(notifications_xml org.freedesktop.Notifications.xml) | ||
80 | qt5_add_dbus_interface(knotifications_SRCS ${notifications_xml} notifications_interface) | 80 | qt5_add_dbus_interface(knotifications_SRCS ${notifications_xml} notifications_interface) | ||
81 | endif() | 81 | endif() | ||
82 | 82 | | |||
83 | configure_file(config-knotifications.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-knotifications.h ) | 83 | configure_file(config-knotifications.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-knotifications.h ) | ||
84 | 84 | | |||
85 | add_library(KF5Notifications ${knotifications_SRCS}) | 85 | add_library(KF5Notifications ${knotifications_SRCS}) | ||
86 | generate_export_header(KF5Notifications BASE_NAME KNotifications) | | |||
87 | add_library(KF5::Notifications ALIAS KF5Notifications) | 86 | add_library(KF5::Notifications ALIAS KF5Notifications) | ||
88 | 87 | | |||
88 | ecm_generate_export_header(KF5Notifications | ||||
89 | EXPORT_FILE_NAME knotifications_export.h | ||||
90 | BASE_NAME KNotifications | ||||
91 | GROUP_BASE_NAME KF | ||||
92 | VERSION ${KF5_VERSION} | ||||
93 | DEPRECATED_BASE_VERSION 0 | ||||
94 | DEPRECATION_VERSIONS 5.67 | ||||
95 | EXCLUDE_DEPRECATED_BEFORE_AND_AT ${EXCLUDE_DEPRECATED_BEFORE_AND_AT} | ||||
kossebau: This also needs the definition as option in the toplevel file. Fixed by… | |||||
96 | ) | ||||
97 | | ||||
89 | target_include_directories(KF5Notifications INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/KNotifications>") | 98 | target_include_directories(KF5Notifications INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/KNotifications>") | ||
90 | 99 | | |||
91 | target_link_libraries(KF5Notifications PUBLIC | 100 | target_link_libraries(KF5Notifications PUBLIC | ||
92 | Qt5::Widgets | 101 | Qt5::Widgets | ||
93 | ) | 102 | ) | ||
94 | if (TARGET Qt5::DBus) | 103 | if (TARGET Qt5::DBus) | ||
95 | target_link_libraries(KF5Notifications PUBLIC Qt5::DBus) | 104 | target_link_libraries(KF5Notifications PUBLIC Qt5::DBus) | ||
96 | endif() | 105 | endif() | ||
▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines |
This also needs the definition as option in the toplevel file. Fixed by 191078e9387b3b591c46d68f884a18ad96b4f2f6