2013-07-02 00:50:32 +01:00
|
|
|
set(kded_kdeconnect_SRCS
|
2013-06-19 12:29:24 +01:00
|
|
|
|
2013-07-24 17:42:33 +01:00
|
|
|
linkproviders/linkprovider.cpp
|
|
|
|
linkproviders/loopbacklinkprovider.cpp
|
2013-08-12 15:09:52 +01:00
|
|
|
#linkproviders/avahitcplinkprovider.cpp
|
2013-08-07 10:29:56 +01:00
|
|
|
linkproviders/broadcasttcplinkprovider.cpp
|
2013-06-19 12:29:24 +01:00
|
|
|
|
2013-07-23 15:11:54 +01:00
|
|
|
devicelinks/devicelink.cpp
|
2013-06-19 12:29:24 +01:00
|
|
|
devicelinks/echodevicelink.cpp
|
2013-07-23 15:11:54 +01:00
|
|
|
devicelinks/tcpdevicelink.cpp
|
2013-06-19 12:29:24 +01:00
|
|
|
|
2013-08-12 15:09:52 +01:00
|
|
|
plugins/packageinterface.cpp
|
|
|
|
plugins/pluginloader.cpp
|
2013-06-19 12:29:24 +01:00
|
|
|
|
2013-06-17 11:23:08 +01:00
|
|
|
networkpackage.cpp
|
|
|
|
daemon.cpp
|
2013-06-25 17:08:34 +01:00
|
|
|
device.cpp
|
2013-06-06 04:57:06 +01:00
|
|
|
)
|
|
|
|
|
2013-08-12 15:09:52 +01:00
|
|
|
add_subdirectory(plugins)
|
2013-08-10 04:21:55 +01:00
|
|
|
|
2013-07-02 00:50:32 +01:00
|
|
|
kde4_add_plugin(kded_kdeconnect ${kded_kdeconnect_SRCS})
|
2013-06-06 04:57:06 +01:00
|
|
|
|
2013-07-02 00:50:32 +01:00
|
|
|
target_link_libraries(kded_kdeconnect
|
2013-06-06 04:57:06 +01:00
|
|
|
${KDE4_KDECORE_LIBS}
|
|
|
|
${KDE4_KDEUI_LIBS}
|
2013-08-12 15:09:52 +01:00
|
|
|
#kdnssd
|
2013-07-04 00:09:49 +01:00
|
|
|
qjson
|
2013-06-06 04:57:06 +01:00
|
|
|
${QT_QTNETWORK_LIBRARY}
|
|
|
|
)
|
|
|
|
|
2013-07-28 21:00:45 +01:00
|
|
|
macro (generate_and_install_dbus_interface main_project_target header_file output_xml_file) #OPTIONS qdbus_options
|
|
|
|
QT4_EXTRACT_OPTIONS(
|
|
|
|
extra_files_ignore
|
|
|
|
qdbus_options
|
|
|
|
${ARGN}
|
|
|
|
)
|
|
|
|
qt4_generate_dbus_interface(
|
|
|
|
${header_file}
|
|
|
|
${output_xml_file}
|
|
|
|
OPTIONS ${qdbus_options}
|
|
|
|
)
|
|
|
|
add_custom_target(
|
|
|
|
${output_xml_file}
|
|
|
|
SOURCES ${CMAKE_CURRENT_BINARY_DIR}/${output_xml_file}
|
|
|
|
)
|
|
|
|
install(
|
|
|
|
FILES ${CMAKE_CURRENT_BINARY_DIR}/${output_xml_file}
|
|
|
|
DESTINATION ${DBUS_INTERFACES_INSTALL_DIR}
|
|
|
|
)
|
|
|
|
add_dependencies(
|
|
|
|
${main_project_target}
|
|
|
|
${output_xml_file}
|
|
|
|
)
|
2013-07-26 15:21:19 +01:00
|
|
|
endmacro (generate_and_install_dbus_interface)
|
|
|
|
|
|
|
|
generate_and_install_dbus_interface(
|
|
|
|
kded_kdeconnect
|
2013-06-25 17:08:34 +01:00
|
|
|
daemon.h
|
2013-07-28 21:00:45 +01:00
|
|
|
org.kde.kdeconnect.daemon.xml
|
2013-06-25 17:08:34 +01:00
|
|
|
OPTIONS -a
|
|
|
|
)
|
|
|
|
|
2013-07-26 15:21:19 +01:00
|
|
|
generate_and_install_dbus_interface(
|
|
|
|
kded_kdeconnect
|
2013-07-03 02:52:44 +01:00
|
|
|
device.h
|
|
|
|
org.kde.kdeconnect.device.xml
|
|
|
|
OPTIONS -a
|
|
|
|
)
|
|
|
|
|
2013-07-02 00:50:32 +01:00
|
|
|
install(TARGETS kded_kdeconnect DESTINATION ${PLUGIN_INSTALL_DIR})
|
|
|
|
install(FILES kdeconnect.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded)
|
|
|
|
install(FILES kdeconnect.notifyrc DESTINATION ${DATA_INSTALL_DIR}/kdeconnect)
|