polybar/cmake
Rune Morling 43556b5d92 cmake: Use GNUInstallDirs (#1818)
* Use GNUInstallDirs instead of hardcoded paths

This change should be a no-op in the normal case and at the same time make it
easier to customise polybar builds on systems with special needs.

* Avoid creating /usr/share/doc/polybar/polybar/*

* Include GNUInstallDirs for the doc target itself

* cmake: Don't try to set CMAKE_INSTALL_* variables

Since we include GNUInstallDirs all these variables are already set

* cmake: Print install directories in summary

* fix(cmake): Make doc-only work like normal build

This is kind of a dirty hack to force CMAKE_INSTALL_DOCDIR to use
`polybar` as the project name when only polybar-doc is built.

Maybe it is wiser at some point to be able to do a doc only build (and
install) that can be done from the top level project. Then we would also
not need to include GNUInstallDirs here
2019-06-24 18:08:59 +02:00
..
common refactor(cmake): Remove unused querybin 2019-04-05 23:43:37 +02:00
modules CMake refactor (#1510) 2018-11-21 18:46:33 +01:00
templates build: create config even when docs are disabled 2019-04-24 08:11:27 +02:00
01-core.cmake cmake: Use GNUInstallDirs (#1818) 2019-06-24 18:08:59 +02:00
02-opts.cmake build: remove xdamage extension 2019-06-03 00:46:12 +02:00
03-libs.cmake build: remove xdamage extension 2019-06-03 00:46:12 +02:00
04-targets.cmake fix(clang): Search for files in right places 2018-05-20 16:37:18 -07:00
05-summary.cmake cmake: Use GNUInstallDirs (#1818) 2019-06-24 18:08:59 +02:00