CMakeLists.txt 527 Bytes
Newer Older
1 2 3 4 5 6
set(ktrip_SRCS
    main.cpp
    querycontroller.cpp
    locationquerymodel.cpp
)

Nicolas Fella's avatar
Nicolas Fella committed
7 8 9 10
if (ANDROID)
    list(APPEND ktrip_SRCS androidutils.cpp)
endif()

Nicolas Fella's avatar
Nicolas Fella committed
11
qt5_add_resources(ktrip_SRCS resources.qrc)
12
add_executable(ktrip ${ktrip_SRCS})
Nicolas Fella's avatar
Nicolas Fella committed
13
target_link_libraries(ktrip Qt5::Qml Qt5::Gui KPublicTransport)
Nicolas Fella's avatar
Nicolas Fella committed
14

Nicolas Fella's avatar
Nicolas Fella committed
15 16 17 18
if (ANDROID)
    target_link_libraries(ktrip Qt5::AndroidExtras)
endif()

Nicolas Fella's avatar
Nicolas Fella committed
19 20 21 22 23
install(TARGETS ktrip ${INSTALL_TARGETS_DEFAULT_ARGS})

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