MXS-1538: Use the integrated CDC connector

Now that the connector resides in the same repository, it can be built as
a library for the tests. Installing the development package is one option
but it would unnecessarily complicate the build process.
This commit is contained in:
Markus Mäkelä
2018-01-22 20:39:25 +02:00
parent f45911caf8
commit c96d27a495

View File

@ -104,17 +104,8 @@ include_directories(${CMAKE_BINARY_DIR}/include)
set(MYSQL_CLIENT ${CMAKE_BINARY_DIR}/lib/mariadb/libmariadbclient.a CACHE INTERNAL "")
# Build the CDC connector
ExternalProject_Add(cdc_connector
GIT_REPOSITORY https://github.com/mariadb-corporation/maxscale-cdc-connector.git
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/cdc_connector/
BUILD_COMMAND make
INSTALL_COMMAND make install
UPDATE_COMMAND "")
include(GNUInstallDirs)
set(CDC_CONNECTOR_INCLUDE ${CMAKE_BINARY_DIR}/cdc_connector/${CMAKE_INSTALL_INCLUDEDIR}/ CACHE INTERNAL "")
set(CDC_CONNECTOR_LIBRARIES ${CMAKE_BINARY_DIR}/cdc_connector/${CMAKE_INSTALL_LIBDIR}/libcdc_connector.so CACHE INTERNAL "")
include_directories(${CMAKE_BINARY_DIR}/cdc_connector/${CMAKE_INSTALL_INCLUDEDIR})
add_library(cdc_connector ${CMAKE_SOURCE_DIR}/../connectors/cdc-connector/cdc_connector.cpp)
include_directories(${CMAKE_SOURCE_DIR}/../connectors/cdc-connector/)
#
# Check that all required components are present. To build even without them,