shift-shell/dialer/src/CMakeLists.txt
Bhushan Shah 0828700d3e dialer: use QRC instead of the kpackage
And tidy up the code as well
2019-08-16 06:10:32 +00:00

34 lines
1.1 KiB
CMake

set(plasmaphonedialer_SRCS
main.cpp
dialerutils.cpp
call-handler.cpp
call-manager.cpp
)
qt5_add_resources(RESOURCES resources.qrc)
add_executable(plasmaphonedialer ${plasmaphonedialer_SRCS} ${RESOURCES})
target_compile_definitions(plasmaphonedialer PRIVATE -DPROJECT_VERSION="${PROJECT_VERSION}")
find_package(PhoneNumber COMPONENTS PhoneNumber REQUIRED)
target_link_libraries(plasmaphonedialer
PhoneNumber::PhoneNumber
Qt5::Gui
Qt5::Quick
Qt5::Widgets
KF5::Declarative
KF5::I18n
KF5::QuickAddons
KF5::DBusAddons
KF5::Notifications
${TELEPATHY_QT5_LIBRARIES}
)
install(TARGETS plasmaphonedialer ${INSTALL_TARGETS_DEFAULT_ARGS})
install(FILES plasma_dialer.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFY5RCDIR})
configure_file(org.freedesktop.Telepathy.Client.Plasma.Dialer.service.in
org.freedesktop.Telepathy.Client.Plasma.Dialer.service)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.freedesktop.Telepathy.Client.Plasma.Dialer.service
DESTINATION ${DBUS_SERVICES_INSTALL_DIR})
install(FILES Plasma.Dialer.client DESTINATION ${SHARE_INSTALL_PREFIX}/telepathy/clients/)