kdeconnect-kde/app/CMakeLists.txt
Volker Krause 002848efa8 Adapt build system to also support Qt 6
This is complicated by the Qt 5.6 requirement of SailfishOS, hopefully
that didn't get broken by this.
2022-10-29 16:51:41 +02:00

28 lines
1.1 KiB
CMake

qt5_add_resources(kdeconnect_SRCS resources.qrc)
qt5_add_resources(kdeconnect_custom_icons_SRCS ${CMAKE_SOURCE_DIR}/icons/custom_icons.qrc)
if (WIN32)
include(ECMAddAppIcon)
ecm_add_app_icon(kdeconnect_SRCS ICONS
${CMAKE_SOURCE_DIR}/icons/app/sc-apps-kdeconnect.svg
${CMAKE_SOURCE_DIR}/icons/app/16-apps-kdeconnect.png
${CMAKE_SOURCE_DIR}/icons/app/24-apps-kdeconnect.png
${CMAKE_SOURCE_DIR}/icons/app/32-apps-kdeconnect.png
${CMAKE_SOURCE_DIR}/icons/app/48-apps-kdeconnect.png
${CMAKE_SOURCE_DIR}/icons/app/64-apps-kdeconnect.png
${CMAKE_SOURCE_DIR}/icons/app/128-apps-kdeconnect.png
${CMAKE_SOURCE_DIR}/icons/app/256-apps-kdeconnect.png
${CMAKE_SOURCE_DIR}/icons/app/1024-apps-kdeconnect.png
)
endif()
add_executable(kdeconnect-app
main.cpp
${kdeconnect_SRCS}
${kdeconnect_custom_icons_SRCS}
)
target_link_libraries(kdeconnect-app Qt::Quick Qt::QuickControls2 Qt::Widgets KF5::CoreAddons KF5::I18n KF5::KCMUtils)
install(TARGETS kdeconnect-app ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
install(PROGRAMS org.kde.kdeconnect.app.desktop DESTINATION ${KDE_INSTALL_APPDIR})