guile-json: attempt cmake

pull/346/merge
Christopher Lam 8 years ago committed by Geert Janssens
parent 02cfd017e9
commit 50e109a9fa

@ -343,16 +343,16 @@ if (GNC_SRFI64_RESULT EQUAL 0)
endif ()
# Test that guile has guile-json.
execute_process (COMMAND ${GUILE_EXECUTABLE} -c "(use-modules (json builder) (json parser) (json syntax))"
execute_process (COMMAND ${GUILE_EXECUTABLE} -c "(load-from-path \"json.scm\") (use-modules (json builder))"
RESULT_VARIABLE GNC_GUILE_JSON
ERROR_QUIET
# ERROR_QUIET
)
if (GNC_GUILE_JSON EQUAL 0)
message (STATUS "guile-json is present.")
set (HAVE_GUILE_JSON TRUE)
else ()
message (FATAL_ERROR "guile-json cannot be imported. Abort.")
message (STATUS "guile-json cannot be imported. Abort.")
endif ()
# ############################################################

@ -1,9 +1,18 @@
GNC_ADD_SCHEME_TARGETS(guile-json
set (guile-json_SCHEME
json.scm
json/builder.scm
json/parser.scm
json/syntax.scm
)
)
gnc_add_scheme_targets (guile-json
"${guile-json_SCHEME}"
""
""
FALSE
)
SET_DIST_LIST(guile-json_DIST CMakeLists.txt ${guile-json_DATA})
set_dist_list (guile-json_DIST
CMakeLists.txt
${guile-json_SCHEME}
)

Loading…
Cancel
Save