CMakeLists.txt 886 Bytes
Newer Older
Nicolas Fella's avatar
Nicolas Fella committed
1 2
add_subdirectory(dateandtime)

3 4 5
set(ktrip_SRCS
    main.cpp
    querycontroller.cpp
6
    locationcache.cpp
Nicolas Fella's avatar
Nicolas Fella committed
7
    formatter.cpp
Nicolas Fella's avatar
Nicolas Fella committed
8
    resources.qrc
9 10
)

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::I18n 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
Nicolas Fella's avatar
Nicolas Fella committed
33
    )
Nicolas Fella's avatar
Nicolas Fella committed
34
else()
Nicolas Fella's avatar
Nicolas Fella committed
35
    target_link_libraries(ktrip PRIVATE Qt5::Widgets)
Nicolas Fella's avatar
Nicolas Fella committed
36 37
endif()

Nicolas Fella's avatar
Nicolas Fella committed
38 39 40 41 42
install(TARGETS ktrip ${INSTALL_TARGETS_DEFAULT_ARGS})

if (NOT ANDROID)
    install(PROGRAMS org.kde.ktrip.desktop DESTINATION ${KDE_INSTALL_APPDIR})
endif()