kdeconnect-kde/plugins/pausemusic/CMakeLists.txt

33 lines
865 B
CMake
Raw Normal View History

kdeconnect_add_plugin(kdeconnect_pausemusic)
2019-08-21 03:38:35 +01:00
if(WIN32)
target_sources(kdeconnect_pausemusic PRIVATE pausemusicplugin-win.cpp)
2019-08-21 03:38:35 +01:00
else()
target_sources(kdeconnect_pausemusic PRIVATE pausemusicplugin.cpp)
2019-08-21 03:38:35 +01:00
endif()
target_link_libraries(kdeconnect_pausemusic
kdeconnectcore
kdeconnectinterfaces
Qt::Core
Qt::DBus
)
if (WIN32)
target_link_libraries(kdeconnect_pausemusic windowsapp)
else()
target_link_libraries(kdeconnect_pausemusic KF${QT_MAJOR_VERSION}::PulseAudioQt)
2019-08-21 03:38:35 +01:00
endif()
#######################################
# Config
kdeconnect_add_kcm(kdeconnect_pausemusic_config SOURCES pausemusic_config.cpp)
ki18n_wrap_ui(kdeconnect_pausemusic_config pausemusic_config.ui)
target_link_libraries(kdeconnect_pausemusic_config
kdeconnectcore
kdeconnectpluginkcm
2023-04-15 11:57:52 +01:00
KF${QT_MAJOR_VERSION}::I18n
KF${QT_MAJOR_VERSION}::KCMUtils
)