kasts/src/CMakeLists.txt

96 lines
2.2 KiB
CMake
Raw Normal View History

2021-04-06 17:04:17 +02:00
# SPDX-FileCopyrightText: 2020 Tobias Fella <fella@posteo.de>
# SPDX-License-Identifier: BSD-2-Clause
2021-05-03 10:43:24 +02:00
set(SRCS_base
2020-02-28 23:25:08 +01:00
main.cpp
2020-10-09 13:47:35 +02:00
feedsmodel.cpp
entriesmodel.cpp
2020-02-28 23:25:08 +01:00
fetcher.cpp
2020-03-16 22:37:04 +01:00
database.cpp
2020-05-26 16:32:07 +02:00
entry.cpp
feed.cpp
author.cpp
2021-02-21 19:54:10 +01:00
enclosure.cpp
enclosuredownloadjob.cpp
2021-03-26 16:26:19 +01:00
queuemodel.cpp
2021-04-17 22:54:35 +02:00
episodemodel.cpp
downloadprogressmodel.cpp
2021-04-02 17:06:27 +02:00
datamanager.cpp
audiomanager.cpp
powermanagementinterface.cpp
errorlogmodel.cpp
error.h
mpris2/mpris2.cpp
2020-02-28 23:25:08 +01:00
resources.qrc
2020-04-21 23:27:15 +02:00
)
2020-02-28 23:25:08 +01:00
2021-05-28 22:55:18 +02:00
ecm_qt_declare_logging_category(SRCS_base
HEADER "audiologging.h"
IDENTIFIER "kastsAudio"
CATEGORY_NAME "org.kde.kasts.audio"
DEFAULT_SEVERITY Info
)
2021-05-03 10:43:24 +02:00
if(ANDROID)
set (SRCS ${SRCS_base})
else()
set (SRCS ${SRCS_base}
mpris2/mediaplayer2.cpp
mpris2/mediaplayer2player.cpp
)
2021-05-03 10:43:24 +02:00
qt5_add_dbus_interface(SRCS dbus-interfaces/org.freedesktop.PowerManagement.Inhibit.xml inhibitinterface)
qt5_add_dbus_interface(SRCS dbus-interfaces/org.gnome.SessionManager.xml gnomesessioninterface)
endif()
2021-05-03 22:16:19 +02:00
add_executable(kasts ${SRCS})
2021-05-03 22:16:19 +02:00
kconfig_add_kcfg_files(kasts settingsmanager.kcfgc GENERATE_MOC)
2020-03-26 14:16:19 +01:00
2021-05-03 22:16:19 +02:00
target_include_directories(kasts PRIVATE ${CMAKE_BINARY_DIR})
target_link_libraries(kasts PRIVATE Qt::Core Qt::Qml Qt::Quick Qt::QuickControls2 Qt::Sql Qt::Multimedia KF5::Syndication KF5::CoreAddons KF5::ConfigGui KF5::I18n)
2020-04-21 23:27:15 +02:00
if(ANDROID)
2021-05-03 22:16:19 +02:00
target_link_libraries(kasts PRIVATE
2020-04-21 23:27:15 +02:00
KF5::Kirigami2
Qt::Svg
2020-04-28 21:32:24 +02:00
OpenSSL::SSL
2020-04-21 23:27:15 +02:00
)
kirigami_package_breeze_icons(ICONS
2021-04-30 14:46:48 +02:00
dialog-close
2020-04-21 23:27:15 +02:00
delete
settings-configure
help-about-symbolic
list-add
list-remove
2020-04-28 22:02:31 +02:00
view-refresh
2021-05-03 22:16:19 +02:00
kasts
2020-05-31 21:49:30 +02:00
mail-sent
globe
data-error
2020-07-29 22:10:39 +02:00
rss
2020-09-19 16:57:29 +02:00
document-import
document-export
document-open-folder
2021-02-21 19:54:10 +01:00
edit-delete-remove
edit-clear-all
2021-02-21 19:54:10 +01:00
download
media-playlist-append
media-seek-backward
media-seek-forward
media-skip-forward
media-playback-start
media-playback-pause
source-playlist
arrow-down
overflow-menu
2021-06-04 09:03:48 +02:00
checkbox
2020-04-21 23:27:15 +02:00
)
else()
target_link_libraries(kasts PRIVATE Qt::Widgets Qt::DBus)
2020-04-21 23:27:15 +02:00
endif()
2020-02-28 23:25:08 +01:00
2021-05-03 22:16:19 +02:00
install(TARGETS kasts ${KF5_INSTALL_TARGETS_DEFAULT_ARGS})