kasts/src/CMakeLists.txt

85 lines
2.0 KiB
CMake
Raw Normal View History

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-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 10:43:24 +02:00
add_executable(alligator ${SRCS})
kconfig_add_kcfg_files(alligator settingsmanager.kcfgc GENERATE_MOC)
2020-03-26 14:16:19 +01:00
2020-10-22 14:41:30 +02:00
target_include_directories(alligator PRIVATE ${CMAKE_BINARY_DIR})
2021-05-03 10:43:24 +02:00
target_link_libraries(alligator PRIVATE Qt5::Core Qt5::Qml Qt5::Quick Qt5::QuickControls2 Qt5::Sql Qt5::Multimedia KF5::Syndication KF5::CoreAddons KF5::ConfigGui KF5::I18n)
2020-04-21 23:27:15 +02:00
if(ANDROID)
target_link_libraries(alligator PRIVATE
KF5::Kirigami2
Qt5::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
2020-05-31 18:50:16 +02:00
alligator
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
2020-04-21 23:27:15 +02:00
)
else()
2021-05-03 10:43:24 +02:00
target_link_libraries(alligator PRIVATE Qt5::Widgets Qt5::DBus)
2020-04-21 23:27:15 +02:00
endif()
2020-02-28 23:25:08 +01:00
install(TARGETS alligator ${KF5_INSTALL_TARGETS_DEFAULT_ARGS})