CMakeLists.txt 1009 Bytes
Newer Older
1 2 3
set(ktrip_SRCS
    main.cpp
    querycontroller.cpp
4
    locationcache.cpp
Nicolas Fella's avatar
Nicolas Fella committed
5
    formatter.cpp
Nicolas Fella's avatar
Nicolas Fella committed
6
    resources.qrc
7 8
)

Nicolas Fella's avatar
Nicolas Fella committed
9 10
kconfig_add_kcfg_files(ktrip_SRCS ktripsettings.kcfgc GENERATE_MOC)

Nicolas Fella's avatar
Nicolas Fella committed
11 12 13 14
if (ANDROID)
    list(APPEND ktrip_SRCS androidutils.cpp)
endif()

15
add_executable(ktrip ${ktrip_SRCS})
Nicolas Fella's avatar
Nicolas Fella committed
16
target_link_libraries(ktrip PRIVATE Qt5::Qml Qt5::Gui KF5::CoreAddons KF5::I18n KF5::ConfigGui KPublicTransport)
Nicolas Fella's avatar
Nicolas Fella committed
17

Nicolas Fella's avatar
Nicolas Fella committed
18
if (ANDROID)
Nicolas Fella's avatar
Nicolas Fella committed
19 20
    target_link_libraries(ktrip PRIVATE
        KF5::Kirigami2
21
        KF5::ItemModels
Nicolas Fella's avatar
Nicolas Fella committed
22 23 24 25 26 27 28 29 30 31
        Qt5::Svg
        OpenSSL::SSL
        Qt5::AndroidExtras
    )

    kirigami_package_breeze_icons(ICONS
        go-down-symbolic
        go-next-symbolic
        go-up-symbolic
        view-refresh
Nicolas Fella's avatar
Nicolas Fella committed
32
        search
33
        dialog-ok
Nicolas Fella's avatar
Nicolas Fella committed
34 35
        channel-secure-symbolic
        channel-insecure-symbolic
Nicolas Fella's avatar
Nicolas Fella committed
36
    )
Nicolas Fella's avatar
Nicolas Fella committed
37
else()
Nicolas Fella's avatar
Nicolas Fella committed
38
    target_link_libraries(ktrip PRIVATE Qt5::Widgets)
Nicolas Fella's avatar
Nicolas Fella committed
39 40
endif()

Nicolas Fella's avatar
Nicolas Fella committed
41
install(TARGETS ktrip ${INSTALL_TARGETS_DEFAULT_ARGS})
Nicolas Fella's avatar
Nicolas Fella committed
42
install(PROGRAMS org.kde.ktrip.desktop DESTINATION ${KDE_INSTALL_APPDIR})