20 lines
871 B
CMake
20 lines
871 B
CMake
add_executable(dragonfly dfly_main.cc)
|
|
cxx_link(dragonfly base dragonfly_lib)
|
|
|
|
add_library(dragonfly_lib command_registry.cc common.cc config_flags.cc
|
|
conn_context.cc db_slice.cc debugcmd.cc dragonfly_listener.cc
|
|
dragonfly_connection.cc engine_shard_set.cc generic_family.cc
|
|
list_family.cc main_service.cc memcache_parser.cc
|
|
redis_parser.cc reply_builder.cc string_family.cc transaction.cc)
|
|
|
|
cxx_link(dragonfly_lib dfly_core redis_lib uring_fiber_lib
|
|
fibers_ext strings_lib http_server_lib tls_lib)
|
|
|
|
add_library(dfly_test_lib test_utils.cc)
|
|
cxx_link(dfly_test_lib dragonfly_lib gtest_main_ext)
|
|
|
|
cxx_test(redis_parser_test dfly_test_lib LABELS DFLY)
|
|
cxx_test(list_family_test dfly_test_lib LABELS DFLY)
|
|
cxx_test(string_family_test dfly_test_lib LABELS DFLY)
|
|
cxx_test(memcache_parser_test dfly_test_lib LABELS DFLY)
|