
Moved the CDC example scripts into the protocol directory and added the .py suffix. Fixed all references to these scripts.
39 lines
1.5 KiB
CMake
39 lines
1.5 KiB
CMake
add_library(MySQLClient SHARED mysql_client.c mysql_common.c)
|
|
target_link_libraries(MySQLClient maxscale-common MySQLAuth)
|
|
set_target_properties(MySQLClient PROPERTIES VERSION "1.0.0")
|
|
install(TARGETS MySQLClient DESTINATION ${MAXSCALE_LIBDIR})
|
|
|
|
add_library(MySQLBackend SHARED mysql_backend.c mysql_common.c)
|
|
target_link_libraries(MySQLBackend maxscale-common MySQLAuth)
|
|
set_target_properties(MySQLBackend PROPERTIES VERSION "2.0.0")
|
|
install(TARGETS MySQLBackend DESTINATION ${MAXSCALE_LIBDIR})
|
|
|
|
add_library(telnetd SHARED telnetd.c)
|
|
target_link_libraries(telnetd maxscale-common)
|
|
set_target_properties(telnetd PROPERTIES VERSION "1.0.1")
|
|
install(TARGETS telnetd DESTINATION ${MAXSCALE_LIBDIR})
|
|
|
|
add_library(HTTPD SHARED httpd.c)
|
|
target_link_libraries(HTTPD maxscale-common)
|
|
set_target_properties(HTTPD PROPERTIES VERSION "1.0.1")
|
|
install(TARGETS HTTPD DESTINATION ${MAXSCALE_LIBDIR})
|
|
|
|
if(BUILD_TESTS)
|
|
add_library(testprotocol SHARED testprotocol.c)
|
|
set_target_properties(testprotocol PROPERTIES VERSION "1.0.0")
|
|
install(TARGETS testprotocol DESTINATION ${MAXSCALE_LIBDIR})
|
|
endif()
|
|
|
|
add_library(maxscaled SHARED maxscaled.c)
|
|
target_link_libraries(maxscaled maxscale-common)
|
|
set_target_properties(maxscaled PROPERTIES VERSION "1.0.0")
|
|
install(TARGETS maxscaled DESTINATION ${MAXSCALE_LIBDIR})
|
|
|
|
if(BUILD_CDC)
|
|
add_library(CDC SHARED cdc.c)
|
|
target_link_libraries(CDC maxscale-common)
|
|
set_target_properties(CDC PROPERTIES VERSION "1.0.1")
|
|
install(TARGETS CDC DESTINATION ${MAXSCALE_LIBDIR})
|
|
add_subdirectory(examples)
|
|
endif()
|