2014-11-13 19:30:51 +02:00
|
|
|
project(plasma-systemtray)
|
|
|
|
|
|
|
|
set(data_install_dir "plasma/packages/org.kde.systemtray")
|
|
|
|
|
2016-04-14 14:54:31 +00:00
|
|
|
cmake_policy(SET CMP0005 NEW)
|
|
|
|
add_definitions(-DSYSTEMTRAY_DATA_INSTALL_DIR="${data_install_dir}")
|
2014-11-13 19:30:51 +02:00
|
|
|
|
2016-04-14 14:54:31 +00:00
|
|
|
set(systemtray_SRCS
|
2014-11-13 19:30:51 +02:00
|
|
|
core/manager.cpp
|
|
|
|
core/protocol.cpp
|
|
|
|
core/task.cpp
|
|
|
|
|
|
|
|
protocols/fdo/fdoprotocol.cpp
|
|
|
|
protocols/fdo/fdotask.cpp
|
|
|
|
#FIXME: we should find another way to achieve that
|
|
|
|
#protocols/fdo/fdonotification.cpp
|
|
|
|
protocols/fdo/fdographicswidget.cpp
|
|
|
|
protocols/fdo/fdoselectionmanager.cpp
|
|
|
|
protocols/fdo/x11embedcontainer.cpp
|
|
|
|
protocols/fdo/x11embeddelegate.cpp
|
|
|
|
protocols/fdo/x11embedpainter.cpp
|
|
|
|
|
|
|
|
protocols/plasmoid/plasmoidtaskprotocol.cpp
|
|
|
|
protocols/plasmoid/plasmoidtask.cpp
|
|
|
|
|
|
|
|
protocols/dbussystemtray/dbussystemtraytask.cpp
|
|
|
|
protocols/dbussystemtray/dbussystemtrayprotocol.cpp
|
|
|
|
|
|
|
|
ui/applet.cpp
|
|
|
|
ui/widgetitem.cpp
|
|
|
|
ui/mouseredirectarea.cpp
|
2015-09-01 04:37:19 +03:00
|
|
|
)
|
2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
kde4_add_plugin(plasma_applet_systemtray ${systemtray_SRCS})
|
|
|
|
include_directories(${CMAKE_SOURCE_DIR})
|
|
|
|
target_link_libraries(plasma_applet_systemtray
|
2015-08-19 04:18:05 +03:00
|
|
|
${QT_QTDECLARATIVE_LIBRARIES}
|
2014-11-13 19:30:51 +02:00
|
|
|
${KDE4_KDEUI_LIBS}
|
|
|
|
${KDE4_PLASMA_LIBS}
|
|
|
|
${X11_LIBRARIES}
|
|
|
|
${X11_Xrender_LIB}
|
|
|
|
${X11_Xfixes_LIB}
|
|
|
|
${X11_Xdamage_LIB}
|
|
|
|
${X11_Xcomposite_LIB}
|
|
|
|
)
|
|
|
|
|
|
|
|
install(TARGETS plasma_applet_systemtray DESTINATION ${PLUGIN_INSTALL_DIR})
|
|
|
|
install(DIRECTORY "package/" DESTINATION "${DATA_INSTALL_DIR}/${data_install_dir}")
|
|
|
|
install(FILES plasma-applet-systemtray.desktop DESTINATION ${SERVICES_INSTALL_DIR})
|