From 664b6bd2aff36e8567c74d6acab45bd03d0e6801 Mon Sep 17 00:00:00 2001 From: Burt P Date: Sat, 10 Mar 2018 23:32:28 -0600 Subject: [new] x_util: functions and data structures for x server information Get X display info from Xlib, xrandr, xdpyinfo, and glxinfo. Also, Some simple Wayland info lives here for now. Signed-off-by: Burt P --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 628583b5..faf19262 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -88,6 +88,8 @@ if(NOT HARDINFO_NOSYNC) pkg_check_modules(LIBSOUP libsoup-2.4>=2.24) endif() +pkg_check_modules(X11 REQUIRED x11) + include(FindZLIB REQUIRED) include_directories( @@ -99,10 +101,12 @@ include_directories( ${GTK_INCLUDE_DIRS} ${LIBSOUP_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIRS} + ${X11_INCLUDE_DIRS} ) link_directories( ${GTK_LIBRARY_DIRS} ${LIBSOUP_LIBRARY_DIRS} + ${X11_LIBRARY_DIRS} ) set(HARDINFO_MODULES @@ -226,6 +230,7 @@ add_executable(hardinfo hardinfo/cpu_util.c hardinfo/dmi_util.c hardinfo/dt_util.c + hardinfo/x_util.c shell/callbacks.c shell/iconcache.c shell/menu.c @@ -241,6 +246,7 @@ target_link_libraries(hardinfo ${LIBSOUP_LIBRARIES} m ${ZLIB_LIBRARIES} + ${X11_LIBRARIES} ) else() add_executable(hardinfo @@ -256,6 +262,7 @@ add_executable(hardinfo hardinfo/cpu_util.c hardinfo/dmi_util.c hardinfo/dt_util.c + hardinfo/x_util.c shell/callbacks.c shell/iconcache.c shell/menu.c @@ -270,6 +277,7 @@ target_link_libraries(hardinfo ${LIBSOUP_LIBRARIES} m ${ZLIB_LIBRARIES} + ${X11_LIBRARIES} ) endif() -- cgit v1.2.3