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:
@ -104,17 +104,8 @@ include_directories(${CMAKE_BINARY_DIR}/include)
|
|||||||
set(MYSQL_CLIENT ${CMAKE_BINARY_DIR}/lib/mariadb/libmariadbclient.a CACHE INTERNAL "")
|
set(MYSQL_CLIENT ${CMAKE_BINARY_DIR}/lib/mariadb/libmariadbclient.a CACHE INTERNAL "")
|
||||||
|
|
||||||
# Build the CDC connector
|
# Build the CDC connector
|
||||||
ExternalProject_Add(cdc_connector
|
add_library(cdc_connector ${CMAKE_SOURCE_DIR}/../connectors/cdc-connector/cdc_connector.cpp)
|
||||||
GIT_REPOSITORY https://github.com/mariadb-corporation/maxscale-cdc-connector.git
|
include_directories(${CMAKE_SOURCE_DIR}/../connectors/cdc-connector/)
|
||||||
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})
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Check that all required components are present. To build even without them,
|
# Check that all required components are present. To build even without them,
|
||||||
|
|||||||
Reference in New Issue
Block a user