Warning, /frameworks/kcmutils/src/qml/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: 2022 Alexander Lohnau <alexander.lohnau@gmx.de>
0002 # SPDX-License-Identifier: BSD-3-Clause
0003 
0004 # Library
0005 add_library(KF6KCMUtilsQuick
0006     kquickconfigmodule.cpp
0007     kquickmanagedconfigmodule.cpp
0008     sharedqmlengine.cpp
0009     kquickconfigmoduleloader.cpp
0010 )
0011 
0012 ecm_generate_export_header(KF6KCMUtilsQuick
0013     BASE_NAME KCMUtilsQuick
0014     GROUP_BASE_NAME KF
0015     VERSION ${KF_VERSION}
0016     DEPRECATED_BASE_VERSION 0
0017 )
0018 target_include_directories(KF6KCMUtilsQuick INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF}/KCMUtilsQuick>")
0019 
0020 target_link_libraries(KF6KCMUtilsQuick
0021   PUBLIC
0022     KF6::CoreAddons
0023     KF6::ConfigCore
0024     Qt6::Qml
0025     KF6KCMUtilsCore
0026   PRIVATE
0027     KF6::I18n
0028     KF6::ConfigGui
0029     Qt6::Quick
0030     kcmutils_logging_STATIC
0031 )
0032 
0033 set_target_properties(KF6KCMUtilsQuick PROPERTIES
0034                       VERSION ${KCMUTILS_VERSION}
0035                       SOVERSION ${KCMUTILS_SOVERSION}
0036                       EXPORT_NAME KCMUtilsQuick)
0037 ecm_generate_headers(KCMUtilsQuick_HEADERS
0038   HEADER_NAMES
0039   KQuickConfigModule
0040   KQuickManagedConfigModule
0041   KQuickConfigModuleLoader
0042 
0043   REQUIRED_HEADERS KCMUtilsQuick_HEADERS
0044 )
0045 install(FILES
0046   ${CMAKE_CURRENT_BINARY_DIR}/kcmutilsquick_export.h
0047   ${KCMUtilsQuick_HEADERS}
0048   DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF}/KCMUtilsQuick COMPONENT Devel
0049 )
0050 
0051 install(TARGETS KF6KCMUtilsQuick EXPORT KF6KCMUtilsTargets ${KF_INSTALL_TARGETS_DEFAULT_ARGS})
0052 
0053 # QML plugin
0054 ecm_add_qml_module(kcmutilsqmlplugin URI "org.kde.kcmutils" CLASS_NAME KCMUtilsQmlPlugin)
0055 target_sources(kcmutilsqmlplugin
0056   PRIVATE
0057     qmlplugin.cpp
0058     settingstateproxy.cpp
0059     settinghighlighterprivate.cpp
0060     kcmlauncher.cpp
0061 )
0062 target_link_libraries(kcmutilsqmlplugin
0063   PRIVATE
0064     KF6::KIOGui
0065     Qt6::Qml
0066     Qt6::Quick
0067     kcmutils_proxy_model
0068     kcmutils_logging_STATIC
0069     KF6KCMUtilsQuick
0070 )
0071 
0072 ecm_target_qml_sources(kcmutilsqmlplugin SOURCES
0073     components/PluginDelegate.qml
0074     components/PluginSelector.qml
0075     components/AbstractKCM.qml
0076     components/ContextualHelpButton.qml
0077     components/GridDelegate.qml
0078     components/GridView.qml
0079     components/GridViewKCM.qml
0080     components/ScrollView.qml
0081     components/ScrollViewKCM.qml
0082     components/SettingHighlighter.qml
0083     components/SettingStateBinding.qml
0084     components/SimpleKCM.qml
0085 )
0086 ecm_target_qml_sources(kcmutilsqmlplugin PATH private SOURCES
0087     components/private/AboutPlugin.qml
0088     components/private/GridDelegateMenu.qml
0089     components/private/GridViewInternal.qml
0090 )
0091 ecm_finalize_qml_module(kcmutilsqmlplugin DESTINATION ${KDE_INSTALL_QMLDIR})
0092