Warning, /network/alligator/src/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2020 Tobias Fella <tobias.fella@kde.org>
0002 # SPDX-License-Identifier: BSD-2-Clause
0003
0004 add_executable(alligator
0005 main.cpp
0006 feedsmodel.cpp
0007 entriesmodel.cpp
0008 entriesproxymodel.cpp
0009 fetcher.cpp
0010 database.cpp
0011 feed.cpp
0012 feedgroupsmodel.cpp
0013 feedsproxymodel.cpp
0014 contenthelper.cpp
0015 )
0016
0017 qt_add_qml_module(alligator URI org.kde.alligator NO_RESOURCE_TARGET_PATH
0018 QML_FILES
0019 qml/AddFeedDialog.qml
0020 qml/AlligatorGlobalDrawer.qml
0021 qml/EditFeedDialog.qml
0022 qml/EntryListDelegate.qml
0023 qml/EntryListPage.qml
0024 qml/EntryPage.qml
0025 qml/FeedDetailsPage.qml
0026 qml/FeedGroupDialog.qml
0027 qml/FeedListDelegate.qml
0028 qml/FeedListPage.qml
0029 qml/GroupsListPage.qml
0030 qml/SettingsPage.qml
0031 qml/main.qml
0032 )
0033
0034 kconfig_add_kcfg_files(alligator alligatorsettings.kcfgc GENERATE_MOC)
0035
0036 target_include_directories(alligator PRIVATE ${CMAKE_BINARY_DIR})
0037 target_link_libraries(alligator PRIVATE Qt::Core Qt::Qml Qt::Quick Qt::QuickControls2 Qt::Sql KF6::Syndication KF6::CoreAddons KF6::ConfigGui KF6::I18n)
0038
0039 if(ANDROID)
0040 target_link_libraries(alligator PRIVATE
0041 KF6::Kirigami
0042 Qt::Svg
0043 OpenSSL::SSL
0044 )
0045 if(SQLite3_FOUND)
0046 target_link_libraries(alligator PRIVATE SQLite::SQLite3)
0047 endif()
0048
0049 kirigami_package_breeze_icons(ICONS
0050 bookmark-remove
0051 bookmark-new
0052 delete
0053 settings-configure
0054 help-about-symbolic
0055 list-add
0056 view-refresh
0057 alligator
0058 mail-mark-read
0059 mail-read
0060 mail-mark-unread
0061 mail-sent
0062 globe
0063 data-error
0064 rss
0065 document-import
0066 document-export
0067 edit-group
0068 arrow-down
0069 arrow-up
0070 arrow-right
0071 license
0072 feed-subscribe
0073 documentinfo
0074 dialog-ok
0075 dialog-cancel
0076 editor
0077 )
0078 ecm_add_android_apk(alligator ANDROID_DIR ${CMAKE_SOURCE_DIR}/android)
0079 else()
0080 target_link_libraries(alligator PRIVATE Qt::Widgets)
0081 endif()
0082
0083 install(TARGETS alligator ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})