Move the CDC Connector into its own package

The connector is now in its own package to make its installation easier.
This commit is contained in:
Markus Mäkelä 2018-02-11 15:21:44 +02:00
parent b94f3b8792
commit f252f25624
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19
5 changed files with 8 additions and 8 deletions

View File

@ -48,7 +48,7 @@ cp _build/*.gz .
set -x
if [ "$build_experimental" == "yes" ]
then
for component in experimental devel
for component in experimental devel cdc-connector
do
cd _build
rm CMakeCache.txt

View File

@ -43,7 +43,7 @@ cp _build/*.gz .
if [ "$build_experimental" == "yes" ]
then
for component in experimental devel
for component in experimental devel cdc-connector
do
cd _build
rm CMakeCache.txt

View File

@ -63,8 +63,8 @@ set(INSTALL_EXPERIMENTAL TRUE CACHE BOOL "Install experimental modules")
# Default package name
set(PACKAGE_NAME "maxscale" CACHE STRING "Name of the generated package")
# Which component to build (core, experimental, devel)
set(TARGET_COMPONENT "core" CACHE STRING "Which component to build (core, experimental, devel, all)")
# Which component to build (core, experimental, devel, cdc-connector, all)
set(TARGET_COMPONENT "core" CACHE STRING "Which component to build (core, experimental, devel, cdc-connector, all)")
# Enable AddressSanitizer: https://github.com/google/sanitizers/wiki/AddressSanitizer
set(WITH_ASAN FALSE CACHE BOOL "Enable AddressSanitizer")

View File

@ -3,7 +3,7 @@
execute_process(COMMAND uname -m COMMAND tr -d '\n' OUTPUT_VARIABLE CPACK_PACKAGE_ARCHITECTURE)
# Check target
set(PACK_TARGETS "core" "devel" "experimental" "all" "client")
set(PACK_TARGETS "core" "devel" "experimental" "cdc-connector" "all")
if(DEFINED TARGET_COMPONENT AND NOT TARGET_COMPONENT STREQUAL "")
set(LIST_INDEX -1)
list(FIND PACK_TARGETS ${TARGET_COMPONENT} LIST_INDEX)

View File

@ -7,6 +7,6 @@ set_target_properties(cdc_connector PROPERTIES VERSION "1.0.0")
add_library(cdc_connector_static STATIC cdc_connector.cpp)
set_target_properties(cdc_connector_static PROPERTIES OUTPUT_NAME cdc_connector)
install_dev_library(cdc_connector devel)
install_dev_library(cdc_connector_static devel)
install_header(cdc_connector.h devel)
install_dev_library(cdc_connector cdc-connector)
install_dev_library(cdc_connector_static cdc-connector)
install_header(cdc_connector.h cdc-connector)