From a14313aec10633f6c3a16eb2e80a73e406ca5a01 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Sat, 9 May 2020 11:12:24 -0700 Subject: Require json-glib to build --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index acfdfeb0..ae4d12fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -89,6 +89,8 @@ if(NOT HARDINFO_NOSYNC) pkg_check_modules(LIBSOUP libsoup-2.4>=2.24) endif() +pkg_check_modules(JSON_GLIB REQUIRED json-glib-1.0>=1.4) + pkg_check_modules(X11 REQUIRED x11) include(FindZLIB REQUIRED) @@ -105,11 +107,13 @@ include_directories( ${LIBSOUP_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIRS} ${X11_INCLUDE_DIRS} + ${JSON_GLIB_INCLUDE_DIRS} ) link_directories( ${GTK_LIBRARY_DIRS} ${LIBSOUP_LIBRARY_DIRS} ${X11_LIBRARY_DIRS} + ${JSON_GLIB_LIBRARY_DIRS} ) set(HARDINFO_MODULES @@ -349,6 +353,7 @@ target_link_libraries(hardinfo m ${ZLIB_LIBRARIES} ${X11_LIBRARIES} + ${JSON_GLIB_LIBRARIES} ) endif() -- cgit v1.2.3