kdeconnect-kde/daemon/CMakeLists.txt

58 lines
1.2 KiB
CMake
Raw Normal View History

add_subdirectory(plugins)
find_package (QJSON REQUIRED)
find_package (QCA2 REQUIRED)
include_directories(
${QJSON_INCLUDE_DIR}
${QCA2_INCLUDE_DIR}
)
set(kded_kdeconnect_SRCS
2013-06-19 12:29:24 +01:00
linkproviders/linkprovider.cpp
linkproviders/loopbacklinkprovider.cpp
2013-08-28 22:47:39 +01:00
linkproviders/lanlinkprovider.cpp
2013-06-19 12:29:24 +01:00
devicelinks/devicelink.cpp
2013-08-28 22:47:39 +01:00
devicelinks/loopbackdevicelink.cpp
devicelinks/landevicelink.cpp
2013-06-19 12:29:24 +01:00
2013-08-13 04:14:46 +01:00
plugins/kdeconnectplugin.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
)
kde4_add_plugin(kded_kdeconnect ${kded_kdeconnect_SRCS})
2013-06-06 04:57:06 +01:00
target_link_libraries(kded_kdeconnect
2013-06-06 04:57:06 +01:00
${KDE4_KDECORE_LIBS}
${KDE4_KDEUI_LIBS}
${QT_QTNETWORK_LIBRARY}
${QJSON_LIBRARIES}
${QCA2_LIBRARIES}
2013-06-06 04:57:06 +01:00
)
include(../cmakemacros.txt)
generate_and_install_dbus_interface(
kded_kdeconnect
2013-06-25 17:08:34 +01:00
daemon.h
org.kde.kdeconnect.daemon.xml
2013-06-25 17:08:34 +01:00
OPTIONS -a
)
generate_and_install_dbus_interface(
kded_kdeconnect
device.h
org.kde.kdeconnect.device.xml
OPTIONS -a
)
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)