set(PLUGIN "statusnotifier")


find_package(dbusmenu-qt5 REQUIRED QUIET)
include_directories(${dbusmenu-qt5_INCLUDE_DIRS})

set(HEADERS
    statusnotifier.h
    dbustypes.h
    statusnotifierbutton.h
    statusnotifieriteminterface.h
    statusnotifierwatcher.h
    statusnotifierwidget.h
    sniasync.h
)

set(SOURCES
    statusnotifier.cpp
    dbustypes.cpp
    statusnotifierbutton.cpp
    statusnotifieriteminterface.cpp
    statusnotifierwatcher.cpp
    statusnotifierwidget.cpp
    sniasync.cpp
)

qt5_add_dbus_adaptor(SOURCES
    org.kde.StatusNotifierItem.xml
    statusnotifieriteminterface.h
    StatusNotifierItemInterface
)

set(LIBRARIES
    lxqt
    dbusmenu-qt5
)

BUILD_LXQT_PLUGIN(${PLUGIN})

set(PLUGIN "statusnotifier")


find_package(dbusmenu-qt5 REQUIRED QUIET)

set(HEADERS
    statusnotifier.h
    dbustypes.h
    statusnotifierbutton.h
    statusnotifieriteminterface.h
    statusnotifierwatcher.h
    statusnotifierwidget.h
    sniasync.h
)

set(SOURCES
    statusnotifier.cpp
    dbustypes.cpp
    statusnotifierbutton.cpp
    statusnotifieriteminterface.cpp
    statusnotifierwatcher.cpp
    statusnotifierwidget.cpp
    sniasync.cpp
)

qt5_add_dbus_adaptor(SOURCES
    org.kde.StatusNotifierItem.xml
    statusnotifieriteminterface.h
    StatusNotifierItemInterface
)

set(LIBRARIES
    lxqt
    dbusmenu-qt5
)

BUILD_LXQT_PLUGIN(${PLUGIN})

Revert "plugin-statusnotifier: fix FTBFS with dbusmenu-qt"
Revert "plugin-statusnotifier: fix FTBFS with dbusmenu-qt"

This reverts commit a28a27ceaec57d626d105065543792e486168df2.
See discussion in https://github.com/lxde/lxqt-panel/commit/a28a27ceaec57d626d105065543792e486168df2#commitcomment-13495592
