kdeconnect-kde/plugins/pausemusic/CMakeLists.txt
Albert Vaca Cintora 59adbc2da4 Move all generated dbus interfaces to kdeconnectinterfaces exclude them from clazy
* Moves the XML definitions of DBus interfaces and code generation from the different plugins
  to kdeconnectinterfaces. Before each plugin had their own, some of them duplicated.
* Appends `// clazy:skip` to the generated interface files, so Clazy doesn't emit warnings
  about them because they are missing the NOTIFY/CONSTANT keywords on Q_PROPERTIES.
* Makes kdeconnectinterfaces static on Qt5 as well (removes a difference with Qt6).
* Moves the generated files to a `generated` directory and updates the includes so they are
  easily distinguished from other header files.
2023-07-24 12:18:47 +00:00

50 lines
1.3 KiB
CMake

if(WIN32)
set(kdeconnect_pausemusic_SRCS
pausemusicplugin-win.cpp
)
else()
set(kdeconnect_pausemusic_SRCS
pausemusicplugin.cpp
)
endif()
kdeconnect_add_plugin(kdeconnect_pausemusic SOURCES ${kdeconnect_pausemusic_SRCS})
ecm_qt_declare_logging_category(kdeconnect_pausemusic
HEADER plugin_pausemusic_debug.h
IDENTIFIER KDECONNECT_PLUGIN_PAUSEMUSIC CATEGORY_NAME kdeconnect.plugin.pausemusic
DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin pausemusic)")
target_link_libraries(kdeconnect_pausemusic
kdeconnectcore
kdeconnectinterfaces
Qt::Core
Qt::DBus
)
if (NOT WIN32)
target_link_libraries(kdeconnect_pausemusic
KF${QT_MAJOR_VERSION}::PulseAudioQt
)
else()
target_link_libraries(kdeconnect_pausemusic
windowsapp
)
target_compile_features(kdeconnect_pausemusic PUBLIC cxx_std_17)
endif()
#######################################
# Config
set( kdeconnect_pausemusic_config_SRCS )
kcoreaddons_add_plugin(kdeconnect_pausemusic_config SOURCES pausemusic_config.cpp INSTALL_NAMESPACE "kdeconnect/kcms")
ki18n_wrap_ui(kdeconnect_pausemusic_config pausemusic_config.ui)
target_link_libraries( kdeconnect_pausemusic_config
kdeconnectcore
kdeconnectpluginkcm
KF${QT_MAJOR_VERSION}::I18n
KF${QT_MAJOR_VERSION}::KCMUtils
)