Summary:
Breeze creates and installs a BreezeConfig.cmake and
BreezeConfigVersion.cmake.
The idea is to have other Plasma projects which default to Breeze items
(e.g. kstyle in plamsa-integration, kdecoration in KWin) to properly
depend on it.
The content of the BreezeConfig.cmake so far provides whether Breeze
is compiled with support for KDecoration and the plugin id.
This can now be used by e.g. KWin in the following way:
find_package(Breeze ${PROJECT_VERSION} CONFIG)
set_package_properties(Breeze PROPERTIES
TYPE OPTIONAL
PURPOSE "For setting the default window decoration plugin")
add_feature_info("Breeze-Decoration" BREEZE_WITH_KDECORATION "Default decoration plugin Breeze")
Reviewers: #plasma
Differential Revision: https://phabricator.kde.org/D1343
wilder-pre-rebase
parent
2201f90bd4
commit
7996fb97d3
2 changed files with 27 additions and 0 deletions
@ -0,0 +1,8 @@ |
||||
@PACKAGE_INIT@ |
||||
|
||||
set(BREEZE_WITH_KDECORATION @WITH_DECORATIONS@) |
||||
if(${BREEZE_WITH_KDECORATION}) |
||||
set(BREEZE_KDECORATION_PLUGIN_ID "org.kde.breeze") |
||||
else() |
||||
set(BREEZE_KDECORATION_PLUGIN_ID "") |
||||
endif() |
||||
Loading…
Reference in new issue