Files
MaxScale/server/modules/routing/avro/CMakeLists.txt
2016-09-09 15:12:58 +03:00

11 lines
552 B
CMake

if(AVRO_FOUND)
include_directories(${AVRO_INCLUDE_DIR})
add_library(avrorouter SHARED avro.c ../binlog/binlog_common.c avro_client.c avro_schema.c avro_rbr.c avro_file.c avro_index.c)
set_target_properties(avrorouter PROPERTIES VERSION "1.0.0")
set_target_properties(avrorouter PROPERTIES LINK_FLAGS -Wl,-z,defs)
target_link_libraries(avrorouter maxscale-common jansson ${AVRO_LIBRARIES} maxavro sqlite3 lzma)
install_module(avrorouter core)
else()
message(STATUS "Avro C libraries were not found, avrorouter will not be built.")
endif()