You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
1.7 KiB
70 lines
1.7 KiB
add_definitions(-DQT_NO_CAST_TO_ASCII |
|
-DQT_NO_CAST_FROM_ASCII |
|
-DQT_NO_CAST_FROM_BYTEARRAY) |
|
|
|
find_package(XCB |
|
REQUIRED COMPONENTS |
|
XCB |
|
XFIXES |
|
DAMAGE |
|
COMPOSITE |
|
RANDR |
|
SHM |
|
UTIL |
|
IMAGE |
|
) |
|
|
|
set(XCB_LIBS |
|
XCB::XCB |
|
XCB::XFIXES |
|
XCB::DAMAGE |
|
XCB::COMPOSITE |
|
XCB::RANDR |
|
XCB::SHM |
|
XCB::UTIL |
|
XCB::IMAGE |
|
) |
|
|
|
set(XEMBED_SNI_PROXY_SOURCES |
|
main.cpp |
|
fdoselectionmanager.cpp |
|
snidbus.cpp |
|
sniproxy.cpp |
|
xtestsender.cpp |
|
) |
|
|
|
qt_add_dbus_adaptor(XEMBED_SNI_PROXY_SOURCES org.kde.StatusNotifierItem.xml |
|
sniproxy.h SNIProxy) |
|
|
|
set(statusnotifierwatcher_xml org.kde.StatusNotifierWatcher.xml) |
|
qt_add_dbus_interface(XEMBED_SNI_PROXY_SOURCES ${statusnotifierwatcher_xml} statusnotifierwatcher_interface) |
|
|
|
ecm_qt_declare_logging_category(XEMBED_SNI_PROXY_SOURCES HEADER debug.h |
|
IDENTIFIER SNIPROXY |
|
CATEGORY_NAME kde.xembedsniproxy |
|
DEFAULT_SEVERITY Info) |
|
|
|
add_executable(xembedsniproxy ${XEMBED_SNI_PROXY_SOURCES}) |
|
|
|
|
|
|
|
set_package_properties(XCB PROPERTIES TYPE REQUIRED) |
|
|
|
|
|
target_link_libraries(xembedsniproxy |
|
Qt::Core |
|
Qt::DBus |
|
KF5::WindowSystem |
|
${XCB_LIBS} |
|
X11::Xtst |
|
) |
|
if (QT_MAJOR_VERSION EQUAL "5") |
|
target_link_libraries(xembedsniproxy Qt::X11Extras) |
|
else() |
|
target_link_libraries(xembedsniproxy Qt::GuiPrivate) |
|
endif() |
|
|
|
install(TARGETS xembedsniproxy ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) |
|
install(FILES xembedsniproxy.desktop DESTINATION ${KDE_INSTALL_AUTOSTARTDIR}) |
|
|
|
ecm_install_configured_files(INPUT plasma-xembedsniproxy.service.in @ONLY DESTINATION ${KDE_INSTALL_SYSTEMDUSERUNITDIR})
|
|
|