Warning, /utilities/ktrip/src/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: 2019-2021 Nicolas Fella <nicolas.fella@gmx.de>
0002 # SPDX-License-Identifier: BSD-2-Clause
0003 
0004 set(ktrip_SRCS
0005     main.cpp
0006     controller.cpp
0007     locationcachemodel.cpp
0008     formatter.cpp
0009     resources.qrc
0010 )
0011 
0012 kconfig_add_kcfg_files(ktrip_SRCS ktripsettings.kcfgc GENERATE_MOC)
0013 
0014 if (ANDROID)
0015     list(APPEND ktrip_SRCS androidutils.cpp)
0016 endif()
0017 
0018 add_executable(ktrip ${ktrip_SRCS})
0019 target_link_libraries(ktrip PRIVATE Qt::Qml Qt::Gui Qt::QuickControls2 KF5::CoreAddons KF5::I18n KF5::ConfigGui KPublicTransport)
0020 target_include_directories(ktrip PRIVATE ${CMAKE_BINARY_DIR})
0021 
0022 if (ANDROID)
0023     target_link_libraries(ktrip PRIVATE
0024         KF5::Kirigami2
0025         KF5::ItemModels
0026         Qt::Svg
0027         OpenSSL::SSL
0028         Qt::AndroidExtras
0029     )
0030 
0031     kirigami_package_breeze_icons(ICONS
0032         go-down-symbolic
0033         go-up-symbolic
0034         channel-secure-symbolic
0035         channel-insecure-symbolic
0036         arrow-down
0037         emblem-ok-symbolic
0038         mark-location-symbolic
0039         system-search-symbolic
0040         collapse
0041         expand
0042         configure
0043     )
0044 else()
0045     target_link_libraries(ktrip PRIVATE Qt::Widgets)
0046 endif()
0047 
0048 ecm_add_app_icon(ktrip ICONS 256-org.kde.ktrip.png 150-org.kde.ktrip.png)
0049 
0050 install(FILES org.kde.ktrip.svg DESTINATION ${KDE_INSTALL_FULL_ICONDIR}/hicolor/scalable/apps)
0051 
0052 install(TARGETS ktrip ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0053 install(PROGRAMS org.kde.ktrip.desktop DESTINATION ${KDE_INSTALL_APPDIR})