Warning, /network/kdeconnect-kde/KDEConnectMacros.cmake is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: 2015 Aleix Pol Gonzalez <aleixpol@kde.org>
0002 # Redistribution and use is allowed according to the terms of the BSD license.
0003 
0004 # Function to create the plugin and generate a logging category for it
0005 function(kdeconnect_add_plugin plugin_name)
0006     kcoreaddons_add_plugin(${plugin_name} ${ARGN} INSTALL_NAMESPACE kdeconnect)
0007 
0008     string(REPLACE "kdeconnect_" "" PlUGIN_WITHOUT_PREFIX "${plugin_name}") # For the file name and description, we don't want this
0009     string(TOUPPER "${PlUGIN_WITHOUT_PREFIX}" PLUGIN_UPPER) # The identifier is all capy
0010     ecm_qt_declare_logging_category(${plugin_name}
0011         HEADER plugin_${PlUGIN_WITHOUT_PREFIX}_debug.h
0012         IDENTIFIER KDECONNECT_PLUGIN_${PLUGIN_UPPER} CATEGORY_NAME kdeconnect.plugin.${PlUGIN_WITHOUT_PREFIX}
0013         DEFAULT_SEVERITY Warning
0014         EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin ${PlUGIN_WITHOUT_PREFIX})")
0015 endfunction()
0016 
0017 function(kdeconnect_add_kcm plugin)
0018     kcoreaddons_add_plugin(${plugin} ${ARGN} INSTALL_NAMESPACE kdeconnect/kcms)
0019     install(FILES "${plugin}.qml" DESTINATION ${KDE_INSTALL_DATADIR}/kdeconnect)
0020 endfunction()