cmake: Consolidate compile settings
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 15 Nov 2018 21:41:26 +0000 (22:41 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 18 Nov 2018 10:06:43 +0000 (11:06 +0100)
commitd9c471f91a6c31863e9fe805a5575ec3a308e7bc
tree7ef2f32c5c09167deee1ee7d1863c88b608c15bf
parent353acdfb3bc68ba15e94061d8942c90b1c61ed61
cmake: Consolidate compile settings

Consolidate the various places where we were setting compiler options
in QuasselCompileSettings.cmake. No longer include KDE's settings;
instead, take some inspiration from their setup and incorporate this
in our own, so we not only benefit when building against KDE
Frameworks.

Properly handle CMAKE_CXX_FLAGS and friends; append the flags to the
end of our own list of flags, so one can override what we define.
Clear the variables afterwards to avoid duplication.

Get rid of some MinGW options that have been around for a decade
and are most likely no longer required.
CMakeLists.txt
cmake/QuasselCompileSettings.cmake
cmake/QuasselMacros.cmake