26 lines
1.2 KiB
CMake
26 lines
1.2 KiB
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 rdb_save.cc snapshot.cc
|
|
redis_parser.cc reply_builder.cc server_family.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(dragonfly_test dfly_test_lib LABELS DFLY)
|
|
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(generic_family_test dfly_test_lib LABELS DFLY)
|
|
cxx_test(memcache_parser_test dfly_test_lib LABELS DFLY)
|
|
|
|
add_custom_target(check_dfly WORKING_DIRECTORY .. COMMAND ctest -L DFLY)
|
|
add_dependencies(check_dfly dragonfly_test list_family_test
|
|
generic_family_test memcache_parser_test redis_parser_test string_family_test)
|