kdeconnect-kde/app/CMakeLists.txt

42 lines
1.8 KiB
CMake
Raw Normal View History

configure_file(qml/main.qml ${CMAKE_CURRENT_BINARY_DIR}/qml/main.qml)
configure_file(qml/DevicePage.qml ${CMAKE_CURRENT_BINARY_DIR}/qml/DevicePage.qml)
configure_file(qml/FindDevicesPage.qml ${CMAKE_CURRENT_BINARY_DIR}/qml/FindDevicesPage.qml)
configure_file(qml/PluginInfoPage.qml ${CMAKE_CURRENT_BINARY_DIR}/qml/PluginInfoPage.qml)
configure_file(resources.qrc.in ${CMAKE_CURRENT_SOURCE_DIR}/resources.generated.qrc)
qt_add_resources(kdeconnect_SRCS resources.generated.qrc)
2015-06-13 00:30:38 +01:00
2023-04-15 11:57:52 +01:00
qt_add_resources(kdeconnect_custom_icons_SRCS ${CMAKE_SOURCE_DIR}/icons/custom_icons.qrc)
2021-05-23 05:54:04 +01:00
ecm_setup_version(${PROJECT_VERSION}
VARIABLE_PREFIX KDE_CONNECT
VERSION_HEADER ${CMAKE_CURRENT_BINARY_DIR}/kdeconnect-version.h
)
2021-06-14 13:11:21 +01:00
if (WIN32)
include(ECMAddAppIcon)
2021-06-14 13:11:21 +01:00
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()
ecm_find_qmlmodule(org.kde.kirigamiaddons.labs.mobileform 0.1)
2021-05-23 05:54:04 +01:00
add_executable(kdeconnect-app
main.cpp
${kdeconnect_SRCS}
${kdeconnect_custom_icons_SRCS}
)
2023-04-15 11:57:52 +01:00
target_link_libraries(kdeconnect-app Qt::Quick Qt::QuickControls2 Qt::Widgets KF${QT_MAJOR_VERSION}::CoreAddons KF${QT_MAJOR_VERSION}::I18n KF${QT_MAJOR_VERSION}::KCMUtils)
2015-06-13 00:30:38 +01:00
install(TARGETS kdeconnect-app ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
install(PROGRAMS org.kde.kdeconnect.app.desktop DESTINATION ${KDE_INSTALL_APPDIR})