Warning, /network/kdeconnect-kde/interfaces/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 add_definitions(-DTRANSLATION_DOMAIN=\"kdeconnect-interfaces\")
0002 
0003 function(geninterface source_h output_h)
0004     set(xml_file ${CMAKE_CURRENT_BINARY_DIR}/${output_h}.xml)
0005     qt_generate_dbus_interface( ${source_h} ${xml_file})
0006 
0007     set_source_files_properties(${xml_file} PROPERTIES NO_NAMESPACE true)
0008 
0009     qt_add_dbus_interface(libkdeconnect_SRC ${xml_file} ${output_h})
0010     set(libkdeconnect_SRC ${libkdeconnect_SRC} PARENT_SCOPE)
0011 endfunction()
0012 
0013 set(debug_files_SRCS)
0014 ecm_qt_declare_logging_category(
0015     debug_files_SRCS HEADER interfaces_conversation_message_debug.h
0016     IDENTIFIER CONVERSATION_MESSAGE_LOGGING_CATEGORY CATEGORY_NAME kdeconnect.interfaces.conversationmessage
0017     DEFAULT_SEVERITY Warning
0018     EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (conversation message)")
0019 
0020 ecm_qt_declare_logging_category(
0021     debug_files_SRCS HEADER interfaces_debug.h
0022     IDENTIFIER KDECONNECT_INTERFACES CATEGORY_NAME kdeconnect.interfaces
0023     DEFAULT_SEVERITY Warning
0024     EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (interfaces)")
0025 
0026 set(libkdeconnect_SRC
0027     dbusinterfaces.cpp
0028     devicesmodel.cpp
0029     notificationsmodel.cpp
0030     devicessortproxymodel.cpp
0031     conversationmessage.cpp
0032     remotecommandsmodel.cpp
0033     remotesinksmodel.cpp
0034     devicespluginfilterproxymodel.cpp
0035     pluginmodel.cpp
0036     commandsmodel.cpp
0037 #    modeltest.cpp
0038     ${debug_files_SRCS}
0039 )
0040 
0041 geninterface(${PROJECT_SOURCE_DIR}/core/daemon.h daemoninterface)
0042 geninterface(${PROJECT_SOURCE_DIR}/core/device.h deviceinterface)
0043 geninterface(${PROJECT_SOURCE_DIR}/plugins/battery/batteryplugin.h batteryinterface)
0044 geninterface(${PROJECT_SOURCE_DIR}/plugins/connectivity-report/connectivity_reportplugin.h connectivityinterface)
0045 geninterface(${PROJECT_SOURCE_DIR}/plugins/sftp/sftpplugin.h devicesftpinterface)
0046 geninterface(${PROJECT_SOURCE_DIR}/plugins/notifications/notificationsplugin.h devicenotificationsinterface)
0047 geninterface(${PROJECT_SOURCE_DIR}/plugins/findmyphone/findmyphoneplugin.h devicefindmyphoneinterface)
0048 geninterface(${PROJECT_SOURCE_DIR}/plugins/notifications/notification.h notificationinterface)
0049 geninterface(${PROJECT_SOURCE_DIR}/plugins/mprisremote/mprisremoteplugin.h mprisremoteinterface)
0050 geninterface(${PROJECT_SOURCE_DIR}/plugins/remotecontrol/remotecontrolplugin.h remotecontrolinterface)
0051 geninterface(${PROJECT_SOURCE_DIR}/plugins/lockdevice/lockdeviceplugin.h lockdeviceinterface)
0052 geninterface(${PROJECT_SOURCE_DIR}/plugins/remotecommands/remotecommandsplugin.h remotecommandsinterface)
0053 geninterface(${PROJECT_SOURCE_DIR}/plugins/remotekeyboard/remotekeyboardplugin.h remotekeyboardinterface)
0054 geninterface(${PROJECT_SOURCE_DIR}/plugins/sms/smsplugin.h smsinterface)
0055 geninterface(${PROJECT_SOURCE_DIR}/plugins/sms/conversationsdbusinterface.h conversationsinterface)
0056 geninterface(${PROJECT_SOURCE_DIR}/plugins/share/shareplugin.h shareinterface)
0057 geninterface(${PROJECT_SOURCE_DIR}/plugins/remotesystemvolume/remotesystemvolumeplugin.h remotesystemvolumeinterface)
0058 geninterface(${PROJECT_SOURCE_DIR}/plugins/bigscreen/bigscreenplugin.h bigscreeninterface)
0059 geninterface(${PROJECT_SOURCE_DIR}/plugins/virtualmonitor/virtualmonitorplugin.h virtualmonitorinterface)
0060 geninterface(${PROJECT_SOURCE_DIR}/plugins/photo/photoplugin.h photointerface)
0061 geninterface(${PROJECT_SOURCE_DIR}/plugins/clipboard/clipboardplugin.h deviceclipboardinterface)
0062 
0063 add_library(kdeconnectinterfaces ${libkdeconnect_SRC})
0064 set_target_properties(kdeconnectinterfaces PROPERTIES
0065     VERSION ${KDECONNECT_VERSION}
0066     SOVERSION ${KDECONNECT_VERSION_MAJOR}
0067 )
0068 
0069 generate_export_header(kdeconnectinterfaces EXPORT_FILE_NAME ${CMAKE_CURRENT_BINARY_DIR}/kdeconnectinterfaces_export.h BASE_NAME KDEConnectInterfaces)
0070 
0071 target_link_libraries(kdeconnectinterfaces
0072 LINK_PUBLIC
0073     Qt${QT_MAJOR_VERSION}::Gui
0074     Qt${QT_MAJOR_VERSION}::DBus
0075     KF5::ConfigCore
0076 LINK_PRIVATE
0077     kdeconnectcore
0078     KF5::I18n
0079     kdeconnectcore
0080     KF5::CoreAddons
0081 )
0082 
0083 install(TARGETS kdeconnectinterfaces EXPORT kdeconnectLibraryTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)