include(FindPkgConfig)
-pkg_check_modules(EXTRAS REQUIRED libxml-2.0 openssl xmlsec1 xmlsec1-openssl)
+pkg_check_modules(EXTRAS REQUIRED libxml-2.0 openssl xmlsec1 xmlsec1-openssl json-c)
add_compile_options(${EXTRAS_CFLAGS})
include_directories(${EXTRAS_INCLUDE_DIRS})
link_libraries(${EXTRAS_LIBRARIES})
add_library(utils STATIC
utils-dir.c
+ utils-file.c
+ utils-json.c
verbose.c
)
add_library(wgt STATIC
wgt-config.c
wgt-info.c
+ wgt-strings.c
wgt.c
)
###########################################################################
# the targeted
-pkg_check_modules(EXTRA2 json-c libsystemd)
+pkg_check_modules(EXTRA2 libsystemd)
if(EXTRA2_FOUND)
add_compile_options(${EXTRA2_CFLAGS})
include_directories(${EXTRA2_INCLUDE_DIRS})
add_library(utils2 STATIC
utils-jbus.c
- utils-json.c
)
add_library(afm STATIC