mirror of
https://github.com/Cloudef/bemenu
synced 2024-11-24 01:44:16 +01:00
12 lines
581 B
CMake
12 lines
581 B
CMake
FIND_PACKAGE(X11)
|
|
|
|
if (X11_FOUND)
|
|
FIND_PACKAGE(Cairo REQUIRED)
|
|
FIND_PACKAGE(Pango REQUIRED)
|
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR} ${X11_INCLUDE_DIR} ${X11_Xinerama_INCLUDE_PATH} ${CAIRO_INCLUDE_DIRS} ${PANGO_INCLUDE_DIRS})
|
|
ADD_LIBRARY(bemenu-renderer-x11 SHARED x11.c window.c xkb_unicode.c)
|
|
SET_TARGET_PROPERTIES(bemenu-renderer-x11 PROPERTIES PREFIX "")
|
|
TARGET_LINK_LIBRARIES(bemenu-renderer-x11 ${X11_LIBRARIES} ${X11_Xinerama_LIB} ${CAIRO_LIBRARIES} ${PANGO_LIBRARIES})
|
|
INSTALL(TARGETS bemenu-renderer-x11 DESTINATION lib/bemenu)
|
|
endif ()
|