Create a BreezeConfig.cmake
ClosedPublic

Authored by graesslin on Apr 7 2016, 11:39 AM.

Details

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")

Diff Detail

Repository
R31 Breeze
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin updated this revision to Diff 3188.Apr 7 2016, 11:39 AM
graesslin retitled this revision from to Create a BreezeConfig.cmake.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added a reviewer: Plasma.
hpereiradacosta accepted this revision.Apr 10 2016, 2:32 PM
hpereiradacosta edited edge metadata.

Ship it ! Thanks !

This revision is now accepted and ready to land.Apr 10 2016, 2:32 PM
This revision was automatically updated to reflect the committed changes.