polybar-dwm/cmake/03-libs.cmake

58 lines
1.0 KiB
CMake
Raw Normal View History

2017-01-26 16:17:02 +00:00
#
# Check libraries
#
find_package(Threads REQUIRED)
find_package(CairoFC REQUIRED)
2017-01-26 16:17:02 +00:00
if (ENABLE_ALSA)
find_package(ALSA REQUIRED)
endif()
if (ENABLE_CURL)
find_package(CURL REQUIRED)
endif()
if (ENABLE_MPD)
find_package(LibMPDClient REQUIRED)
endif()
if (ENABLE_NETWORK)
if(WITH_LIBNL)
find_package(LibNlGenl3 REQUIRED)
else()
find_package(Libiw REQUIRED)
endif()
endif()
if (ENABLE_PULSEAUDIO)
find_package(LibPulse REQUIRED)
endif()
# Randr is required
set(XORG_EXTENSIONS RANDR)
if (WITH_XCOMPOSITE)
set(XORG_EXTENSIONS ${XORG_EXTENSIONS} COMPOSITE)
endif()
if (WITH_XKB)
set(XORG_EXTENSIONS ${XORG_EXTENSIONS} XKB)
endif()
if (WITH_XCURSOR)
set(XORG_EXTENSIONS ${XORG_EXTENSIONS} CURSOR)
endif()
if (WITH_XRM)
set(XORG_EXTENSIONS ${XORG_EXTENSIONS} XRM)
endif()
2017-01-26 16:17:02 +00:00
set(XCB_VERSION "")
if (WITH_XRANDR_MONITOR)
set(XCB_VERSION "1.12")
endif()
2017-01-26 16:17:02 +00:00
find_package(Xcb ${XCB_VERSION} REQUIRED COMPONENTS ${XORG_EXTENSIONS})
2018-03-21 22:35:10 +00:00
# FreeBSD Support
if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
find_package(LibInotify REQUIRED)
2018-03-21 22:35:10 +00:00
endif()