2016-06-22 10:40:31 +01:00
|
|
|
find_package(TelepathyQt5 0.9.5)
|
|
|
|
find_package(TelepathyQt5Service 0.9.7)
|
|
|
|
|
2014-11-30 01:52:43 +00:00
|
|
|
project(connectcm)
|
|
|
|
|
2016-06-16 09:16:35 +01:00
|
|
|
add_executable(connectcm
|
|
|
|
main.cpp
|
2014-11-30 01:52:43 +00:00
|
|
|
connection.cpp
|
|
|
|
protocol.cpp
|
|
|
|
textchannel.cpp
|
|
|
|
kdeconnecttelepathyprotocolfactory.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(connectcm
|
|
|
|
Qt5::Core
|
|
|
|
${TELEPATHY_QT5_LIBRARIES}
|
|
|
|
${TELEPATHY_QT5_SERVICE_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
2016-06-16 09:16:35 +01:00
|
|
|
install (TARGETS connectcm DESTINATION ${CMAKE_INSTALL_LIBEXECDIR})
|
2014-11-30 01:52:43 +00:00
|
|
|
|
2016-06-21 18:56:52 +01:00
|
|
|
file(WRITE ${CMAKE_BINARY_DIR}/org.freedesktop.Telepathy.ConnectionManager.kdeconnect.service "[D-BUS Service]
|
|
|
|
Name=org.freedesktop.Telepathy.ConnectionManager.kdeconnect
|
|
|
|
Exec=${KDE_INSTALL_FULL_LIBEXECDIR}/connectcm
|
|
|
|
")
|
2016-06-16 09:16:35 +01:00
|
|
|
|
|
|
|
install(FILES ${CMAKE_BINARY_DIR}/org.freedesktop.Telepathy.ConnectionManager.kdeconnect.service DESTINATION share/dbus-1/services)
|
|
|
|
|
|
|
|
install(
|
|
|
|
FILES kdeconnect.manager
|
|
|
|
DESTINATION share/telepathy/managers
|
|
|
|
)
|