2017-01-26 16:17:02 +00:00
|
|
|
#
|
|
|
|
# Check libraries
|
|
|
|
#
|
|
|
|
|
|
|
|
find_package(Threads REQUIRED)
|
|
|
|
list(APPEND libs ${CMAKE_THREAD_LIBS_INIT})
|
|
|
|
|
|
|
|
querylib(TRUE "pkg-config" cairo-fc libs dirs)
|
|
|
|
|
|
|
|
querylib(ENABLE_ALSA "pkg-config" alsa libs dirs)
|
|
|
|
querylib(ENABLE_CURL "pkg-config" libcurl libs dirs)
|
|
|
|
querylib(ENABLE_MPD "pkg-config" libmpdclient libs dirs)
|
2018-06-19 03:16:09 +00:00
|
|
|
if(WITH_LIBNL)
|
|
|
|
querylib(ENABLE_NETWORK "pkg-config" libnl-genl-3.0 libs dirs)
|
|
|
|
else()
|
|
|
|
querylib(ENABLE_NETWORK "cmake" Libiw libs dirs)
|
|
|
|
endif()
|
2017-09-08 03:27:21 +00:00
|
|
|
querylib(ENABLE_PULSEAUDIO "pkg-config" libpulse libs dirs)
|
2017-01-26 16:17:02 +00:00
|
|
|
|
|
|
|
querylib(WITH_XCOMPOSITE "pkg-config" xcb-composite libs dirs)
|
|
|
|
querylib(WITH_XDAMAGE "pkg-config" xcb-damage libs dirs)
|
|
|
|
querylib(WITH_XKB "pkg-config" xcb-xkb libs dirs)
|
|
|
|
querylib(WITH_XRANDR "pkg-config" xcb-randr libs dirs)
|
2017-01-26 23:34:59 +00:00
|
|
|
querylib(WITH_XRANDR_MONITORS "pkg-config" "xcb-randr>=1.12" libs dirs)
|
2017-01-26 16:17:02 +00:00
|
|
|
querylib(WITH_XRM "pkg-config" xcb-xrm libs dirs)
|
2017-09-06 06:35:29 +00:00
|
|
|
querylib(WITH_XCURSOR "pkg-config" xcb-cursor libs dirs)
|
2018-03-21 22:35:10 +00:00
|
|
|
|
|
|
|
# FreeBSD Support
|
|
|
|
if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
|
|
|
|
querylib(TRUE "pkg-config" libinotify libs dirs)
|
|
|
|
endif()
|