### Apply GPL license notice to source files Source: https://github.com/kde/layer-shell-qt/blob/master/LICENSES/LGPL-3.0-only.txt Include this notice at the start of each source file to state the exclusion of warranty and provide license details. ```text Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . ``` -------------------------------- ### Configure Layer Shell Qt QML Module Source: https://github.com/kde/layer-shell-qt/blob/master/src/declarative/CMakeLists.txt Defines the QML module, specifies source files, and generates a plugin source. Link against Qt::Qml and LayerShellQtInterface. Finalize module installation. ```cmake ecm_add_qml_module(LayerShellQtQml URI "org.kde.layershell" VERSION 1.0 SOURCES types.h GENERATE_PLUGIN_SOURCE) target_link_libraries(LayerShellQtQml PRIVATE Qt::Qml LayerShellQtInterface) ecm_finalize_qml_module(LayerShellQtQml DESTINATION ${KDE_INSTALL_QMLDIR}) ``` -------------------------------- ### Enable LayerShellQt in C++ Source: https://github.com/kde/layer-shell-qt/blob/master/README.md Call this method to initialize LayerShellQt functionality before creating any client windows. ```cpp LayerShellQt::Shell::useLayerShell(); ``` -------------------------------- ### Access Window settings in C++ Source: https://github.com/kde/layer-shell-qt/blob/master/README.md Use the Window class to retrieve surface-specific settings for a given QWindow instance. ```cpp LayerShellQt::Window::get(window) ``` -------------------------------- ### Configure CMake for LayerShellQt Source: https://github.com/kde/layer-shell-qt/blob/master/tests/CMakeLists.txt Defines an executable and links it with the required LayerShellQtInterface, Qt Qml, and Qt Gui libraries. ```cmake add_executable(layershellqt-test main.cpp) target_link_libraries(layershellqt-test PRIVATE LayerShellQtInterface Qt::Qml Qt::Gui) ``` -------------------------------- ### Display interactive program license notice Source: https://github.com/kde/layer-shell-qt/blob/master/LICENSES/LGPL-3.0-only.txt Use this notice for programs that perform terminal interaction to inform users about warranty and redistribution terms. ```text Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. ``` -------------------------------- ### Find LayerShellQt package in CMake Source: https://github.com/kde/layer-shell-qt/blob/master/README.md Use this command to locate the LayerShellQt package within your CMake project configuration. ```cmake find_package(LayerShellQt REQUIRED) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.