MXS-1413: Make the CDC connector a standalone library

The library is still located in the test directory but the way it is now
built allows it to be used like a standalone library
This commit is contained in:
Markus Mäkelä
2017-09-14 18:56:02 +03:00
parent 3541d6e0a4
commit 062a358077
3 changed files with 24 additions and 9 deletions

View File

@ -45,17 +45,13 @@ else()
message(WARNING "Java not found, Java based tests are not run.")
endif()
# Build the CDC connector
add_subdirectory(cdc_connector)
include_directories(cdc_connector)
# The core library
add_library(testcore SHARED testconnections.cpp mariadb_nodes.cpp
mariadb_func.cpp get_com_select_insert.cpp maxadmin_operations.cpp big_transaction.cpp
sql_t1.cpp test_binlog_fnc.cpp get_my_ip.cpp big_load.cpp get_com_select_insert.cpp
different_size.cpp fw_copy_rules maxinfo_func.cpp config_operations.cpp rds_vpc.cpp execute_cmd.cpp
blob_test.cpp)
target_link_libraries(testcore ${MYSQL_CLIENT} z crypt nsl m pthread ssl crypto dl rt cdc_connector)
target_link_libraries(testcore ${MYSQL_CLIENT} z crypt nsl m pthread ssl crypto dl rt ${CDC_CONNECTOR_LIBRARIES} jansson)
install(TARGETS testcore DESTINATION system-test)
add_dependencies(testcore connector-c cdc_connector)