diff options
author | Danilo Spinella <danyspin97@protonmail.com> | 2019-03-24 14:57:48 +0100 |
---|---|---|
committer | Danilo Spinella <danyspin97@protonmail.com> | 2019-03-25 09:44:45 +0100 |
commit | 5ca32626dc603dfddcf833c762174b4260b8af2c (patch) | |
tree | 6028dd4f5646c4d9c0e9cddd7ea97c57adcfb579 /lib/renderers/CMakeLists.txt | |
parent | 33e540a2b04ce78f5c7ab4a60b899c67f586cc32 (diff) | |
download | bemenu-5ca32626dc603dfddcf833c762174b4260b8af2c.tar.gz bemenu-5ca32626dc603dfddcf833c762174b4260b8af2c.tar.bz2 bemenu-5ca32626dc603dfddcf833c762174b4260b8af2c.zip |
Add options for renderers, make deps required
Diffstat (limited to 'lib/renderers/CMakeLists.txt')
-rw-r--r-- | lib/renderers/CMakeLists.txt | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/lib/renderers/CMakeLists.txt b/lib/renderers/CMakeLists.txt index ef85317..a3350c7 100644 --- a/lib/renderers/CMakeLists.txt +++ b/lib/renderers/CMakeLists.txt @@ -1,8 +1,20 @@ -SET(RENDERERS - "curses" - "wayland" - "x11" -) +SET(RENDERERS "") + +IF(BEMENU_CURSES_RENDERER) + LIST(APPEND RENDERERS "curses") +ENDIF() + +IF(BEMENU_X11_RENDERER) + LIST(APPEND RENDERERS "x11") +ENDIF() + +IF(BEMENU_WAYLAND_RENDERER) + LIST(APPEND RENDERERS "wayland") +ENDIF() + +IF(NOT RENDERERS) + MESSAGE(FATAL_ERROR "At least one renderer should be enabled") +ENDIF() ADD_DEFINITIONS(-DPANGO_DISABLE_DEPRECATED) |