Create a BreezeConfig.cmake

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

Description

Create a BreezeConfig.cmake

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

Details

Committed
graesslinApr 7 2016, 11:39 AM
Differential Revision
D1343: Create a BreezeConfig.cmake
Parents
R31:2201f90bd484: Merge branch 'Plasma/5.6'
Branches
Unknown
Tags
Unknown