Skip to content

Commit

Permalink
replace libjson-glib with libcjson
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnicola committed Sep 18, 2024
1 parent 90e68d0 commit 3e5a91a
Show file tree
Hide file tree
Showing 3 changed files with 332 additions and 411 deletions.
7 changes: 5 additions & 2 deletions openvasd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,17 @@ endif (NOT PKG_CONFIG_FOUND)
## Dependency checks

pkg_check_modules (GLIB REQUIRED glib-2.0>=2.42)
pkg_check_modules (GLIB_JSON REQUIRED json-glib-1.0>=1.4.4)
pkg_check_modules (CURL REQUIRED libcurl>=7.74.0)

# for json parsing we need cJSON
pkg_check_modules (CJSON REQUIRED libcjson>=1.7.14)
pkg_check_modules (GLIB_JSON REQUIRED json-glib-1.0>=1.4.4)


include_directories (${GLIB_INCLUDE_DIRS} ${GLIB_JSON_INCLUDE_DIRS}
${CURL_INCLUDE_DIRS})

set (FILES openvasd.c jsonutils.c)

set (HEADERS openvasd.h jsonutils.h)

if (BUILD_STATIC)
Expand Down
Loading

0 comments on commit 3e5a91a

Please sign in to comment.