build: cmake: extract more subsystem out into its own CMakeLists.txt

namely, cdc, compaction, dht, gms, lang, locator, mutation_writer, raft, readers, replica,
service, tools, tracing and transport.

Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>
This commit is contained in:
Kefu Chai
2023-03-01 15:10:10 +08:00
parent d85af3dca4
commit 563fbb2d11
15 changed files with 285 additions and 104 deletions

29
locator/CMakeLists.txt Normal file
View File

@@ -0,0 +1,29 @@
add_library(locator STATIC)
target_sources(locator
PRIVATE
abstract_replication_strategy.cc
azure_snitch.cc
simple_strategy.cc
local_strategy.cc
network_topology_strategy.cc
everywhere_replication_strategy.cc
token_metadata.cc
snitch_base.cc
simple_snitch.cc
rack_inferring_snitch.cc
gossiping_property_file_snitch.cc
production_snitch_base.cc
ec2_snitch.cc
ec2_multi_region_snitch.cc
gce_snitch.cc
topology.cc
util.cc)
target_include_directories(locator
PUBLIC
${CMAKE_SOURCE_DIR})
target_link_libraries(locator
PUBLIC
Seastar::seastar
xxHash::xxhash
PRIVATE
db)