Move all protocols into subdirs of their own
Each protocol module now resides in a subdirectory of its own. The name of the subdirectory is the same as the name of the library in the module's CMakeLists.txt file.
This commit is contained in:
4
server/modules/protocol/CDC/CMakeLists.txt
Normal file
4
server/modules/protocol/CDC/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
||||
add_library(CDC SHARED cdc.c)
|
||||
target_link_libraries(CDC maxscale-common)
|
||||
set_target_properties(CDC PROPERTIES VERSION "1.0.1")
|
||||
install_module(CDC core)
|
@ -1,37 +1,14 @@
|
||||
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_module(MySQLClient core)
|
||||
if(BUILD_CDC)
|
||||
add_subdirectory(CDC)
|
||||
endif()
|
||||
|
||||
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_module(MySQLBackend core)
|
||||
add_subdirectory(HTTPD)
|
||||
add_subdirectory(maxscaled)
|
||||
add_subdirectory(MySQLBackend)
|
||||
add_subdirectory(MySQLClient)
|
||||
add_subdirectory(telnetd)
|
||||
|
||||
add_library(telnetd SHARED telnetd.c)
|
||||
target_link_libraries(telnetd maxscale-common)
|
||||
set_target_properties(telnetd PROPERTIES VERSION "1.0.1")
|
||||
install_module(telnetd core)
|
||||
|
||||
add_library(HTTPD SHARED httpd.c)
|
||||
target_link_libraries(HTTPD maxscale-common)
|
||||
set_target_properties(HTTPD PROPERTIES VERSION "1.0.1")
|
||||
install_module(HTTPD core)
|
||||
|
||||
if(BUILD_TESTS)
|
||||
add_library(testprotocol SHARED testprotocol.c)
|
||||
set_target_properties(testprotocol PROPERTIES VERSION "1.0.0")
|
||||
install_module(testprotocol core)
|
||||
endif()
|
||||
|
||||
add_library(maxscaled SHARED maxscaled.c)
|
||||
target_link_libraries(maxscaled maxscale-common)
|
||||
set_target_properties(maxscaled PROPERTIES VERSION "1.0.0")
|
||||
install_module(maxscaled core)
|
||||
|
||||
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_module(CDC core)
|
||||
add_subdirectory(testprotocol)
|
||||
endif()
|
||||
|
4
server/modules/protocol/HTTPD/CMakeLists.txt
Normal file
4
server/modules/protocol/HTTPD/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
||||
add_library(HTTPD SHARED httpd.c)
|
||||
target_link_libraries(HTTPD maxscale-common)
|
||||
set_target_properties(HTTPD PROPERTIES VERSION "1.0.1")
|
||||
install_module(HTTPD core)
|
4
server/modules/protocol/MySQLBackend/CMakeLists.txt
Normal file
4
server/modules/protocol/MySQLBackend/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
||||
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_module(MySQLBackend core)
|
4
server/modules/protocol/MySQLClient/CMakeLists.txt
Normal file
4
server/modules/protocol/MySQLClient/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
||||
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_module(MySQLClient core)
|
4
server/modules/protocol/maxscaled/CMakeLists.txt
Normal file
4
server/modules/protocol/maxscaled/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
||||
add_library(maxscaled SHARED maxscaled.c)
|
||||
target_link_libraries(maxscaled maxscale-common)
|
||||
set_target_properties(maxscaled PROPERTIES VERSION "1.0.0")
|
||||
install_module(maxscaled core)
|
4
server/modules/protocol/telnetd/CMakeLists.txt
Normal file
4
server/modules/protocol/telnetd/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
||||
add_library(telnetd SHARED telnetd.c)
|
||||
target_link_libraries(telnetd maxscale-common)
|
||||
set_target_properties(telnetd PROPERTIES VERSION "1.0.1")
|
||||
install_module(telnetd core)
|
3
server/modules/protocol/testprotocol/CMakeLists.txt
Normal file
3
server/modules/protocol/testprotocol/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
||||
add_library(testprotocol SHARED testprotocol.c)
|
||||
set_target_properties(testprotocol PROPERTIES VERSION "1.0.0")
|
||||
install_module(testprotocol core)
|
Reference in New Issue
Block a user