cmake: Clean up icon-related build options
authorManuel Nickschas <sputnick@quassel-irc.org>
Tue, 5 Jun 2018 21:20:58 +0000 (23:20 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Fri, 15 Jun 2018 23:30:32 +0000 (01:30 +0200)
commit7d4dbdf00ab92e8c322656bd2d4d7034ef547001
tree930fcc3c38aefdb0393c86bcce1294b24c1a8d7e
parent1299d8aee02b04d5ec723779d2e862248423e157
cmake: Clean up icon-related build options

Remove -DWITH_BREEZE, -DWITH_BREEZE_DARK and -DWITH_OXYGEN options
from CMake. Instead, provide two new options that should make things
a bit clearer:

-DWITH_BUNDLED_ICONS now controls if bundled icon themes should be
    installed/embedded. Defaults to ON to ensure that required
    icons are available unless explicitly disabled (e.g. by a
    package maintainer, who should then make sure that a dependency
    to Breeze/Oxygen exists).
    Disabling this option saves less than 2 MB of disk space.

-DWITH_OXYGEN_ICONS controls whether the Oxygen icon theme should
    still be supported. This affects both the Oxygen-themed
    Quassel-specific icons and the bundled icon theme. Defaults to
    OFF when building against Qt5, ON for Qt4.

Adapt code accordingly, and update INSTALL.
CMakeLists.txt
INSTALL
icons/CMakeLists.txt
src/common/main.cpp