summaryrefslogtreecommitdiff
path: root/lib/renderers/CMakeLists.txt
blob: a3350c72870c854c476c6a5b8dde6493b19482a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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)

SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/renderers)

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
FOREACH (renderer ${RENDERERS})
    ADD_SUBDIRECTORY(${renderer})
ENDFOREACH()