
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.
11 lines
390 B
CMake
11 lines
390 B
CMake
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)
|
|
|
|
add_executable(maxavrocheck maxavrocheck.c)
|
|
target_link_libraries(maxavrocheck maxavro)
|
|
install_executable(maxavrocheck core)
|
|
add_subdirectory(test)
|
|
endif()
|