Build Jansson if library not found

If the Jansson JSON library is not found on the system, it is built from
source.
This commit is contained in:
Markus Mäkelä
2017-01-27 07:28:57 +02:00
parent 89f456840c
commit 4adc9d705b
8 changed files with 32 additions and 6 deletions

View File

@ -1,7 +1,7 @@
if (AVRO_FOUND AND JANSSON_FOUND)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_library(maxavro maxavro.c maxavro_schema.c maxavro_record.c maxavro_file.c)
target_link_libraries(maxavro maxscale-common jansson)
target_link_libraries(maxavro maxscale-common ${JANSSON_LIBRARIES})
add_executable(maxavrocheck maxavrocheck.c)
target_link_libraries(maxavrocheck maxavro)