Warning, /pim/merkuro/src/components/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: 2022 Carl Schwan <carl@carlschwan.eu>
0002 # SPDX-License-Identifier: BSD-2-Clause
0003 
0004 set(merkuro_components_SRCS)
0005 
0006 ecm_qt_declare_logging_category(merkuro_components_SRCS
0007     HEADER merkuro_components_debug.h
0008     IDENTIFIER "merkuro_components_LOG"
0009     CATEGORY_NAME org.kde.merkuro.components
0010     DESCRIPTION "merkuro components"
0011     EXPORT merkuro
0012 )
0013 
0014 add_library(merkuro_components_static STATIC ${merkuro_components_SRCS})
0015 set_target_properties(merkuro_components_static PROPERTIES POSITION_INDEPENDENT_CODE ON)
0016 target_link_libraries(merkuro_components_static PUBLIC merkuro_lib)
0017 
0018 ecm_add_qml_module(merkuro_components_plugin URI "org.kde.merkuro.components" VERSION 1.0)
0019 
0020 target_sources(merkuro_components_plugin PRIVATE
0021     componentsplugin.cpp
0022     componentsplugin.h
0023     helper.cpp
0024     helper.h
0025 )
0026 
0027 ecm_target_qml_sources(merkuro_components_plugin SOURCES
0028     # Shell components
0029     qml/BaseApplication.qml
0030     qml/KQuickCommandBarPage.qml
0031 
0032     # In window-menu components
0033     qml/KActionFromAction.qml
0034     qml/ViewMenu.qml
0035     qml/EditMenu.qml
0036     qml/FileMenu.qml
0037     qml/WindowMenu.qml
0038     qml/HelpMenu.qml
0039     qml/SettingsMenu.qml
0040 
0041     # global menu components
0042     qml/NativeMenuItemFromAction.qml
0043     qml/NativeFileMenu.qml
0044     qml/NativeEditMenu.qml
0045     qml/NativeHelpMenu.qml
0046     qml/NativeWindowMenu.qml
0047 
0048     # Small controls
0049     qml/ColoredCheckbox.qml
0050 )
0051 
0052 target_link_libraries(merkuro_components_plugin PUBLIC merkuro_components_static)
0053 
0054 ecm_finalize_qml_module(merkuro_components_plugin
0055     DESTINATION ${KDE_INSTALL_QMLDIR}
0056     BUILD_SHARED_LIBS OFF)