Add FindJansson.cmake

Added find_package module for CMake which locates the Jansson libraries
and headers. This will make dependency checking easier and prevents build
failures due to missing dependencies.
This commit is contained in:
Markus Makela
2016-10-09 13:20:31 +03:00
parent e9f94dcd9d
commit 48b1583830
5 changed files with 34 additions and 12 deletions

View File

@ -1,4 +1,4 @@
if (AVRO_FOUND)
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)