Warning, /plasma/plasma-disks/src/kcm/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-License-Identifier: BSD-3-Clause
0002 # SPDX-FileCopyrightText: 2020 Harald Sitter <sitter@kde.org>
0003 
0004 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/version.h)
0005 
0006 file(GLOB QML_SRCS package/contents/*.qml)
0007 add_custom_target(QmlFiles ALL echo SOURCES ${QML_SRCS})
0008 
0009 set(kcm_SRCS
0010     module.cpp
0011     devicemodel.cpp
0012     servicerunner.cpp
0013 )
0014 
0015 # Something wonky is going on with the dbus macros. When the commands are set in the parent scope
0016 # we'll not have access to them here as cmake claims
0017 #   No rule to make target 'src/org.kde.smart.Device.xml'
0018 # Instead generate the xmls (again) here...
0019 qt_generate_dbus_interface(../device.h org.kde.kded.smart.Device.xml)
0020 qt_add_dbus_interface(kcm_SRCS ${CMAKE_CURRENT_BINARY_DIR}/org.kde.kded.smart.Device.xml org.kde.kded.smart.Device)
0021 
0022 qt_add_dbus_interface(kcm_SRCS org.freedesktop.DBus.Properties.xml org.freedesktop.DBus.Properties)
0023 set_source_files_properties(org.freedesktop.DBus.ObjectManager.xml
0024     PROPERTIES
0025         INCLUDE dbusobjectmanagerserver.h
0026 )
0027 qt_add_dbus_interface(kcm_SRCS org.freedesktop.DBus.ObjectManager.xml org.freedesktop.DBus.ObjectManager)
0028 
0029 kcoreaddons_add_plugin(plasma_disks_kcm SOURCES ${kcm_SRCS} INSTALL_NAMESPACE "plasma/kcms/kinfocenter")
0030 set_target_properties(plasma_disks_kcm PROPERTIES OUTPUT_NAME smart)
0031 
0032 target_link_libraries(plasma_disks_kcm
0033     statickdedsmart
0034     KF5::ConfigWidgets
0035     KF5::CoreAddons
0036     KF5::I18n
0037     KF5::QuickAddons
0038     Qt${QT_MAJOR_VERSION}::DBus
0039     KF5::Solid)
0040 
0041 kcoreaddons_desktop_to_json(plasma_disks_kcm smart.desktop)
0042 
0043 kpackage_install_package(package plasma_disks kcms)