mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-19 16:15:07 +00:00
to have feature parity with `configure.py`. we won't need this once we migrate to C++20 modules. but before that day comes, we need to stick with C++ headers. we generate a rule for each .hh files to create a corresponding .cc and then compile it, in order to verify the self-containness of that header. so the number of rule is quite large, to avoid the unnecessary overhead. the check-header target is enabled only if `Scylla_CHECK_HEADERS` option is enabled. Signed-off-by: Kefu Chai <kefu.chai@scylladb.com> Closes scylladb/scylladb#15913
30 lines
649 B
CMake
30 lines
649 B
CMake
add_library(streaming STATIC)
|
|
target_sources(streaming
|
|
PRIVATE
|
|
consumer.cc
|
|
progress_info.cc
|
|
session_info.cc
|
|
stream_coordinator.cc
|
|
stream_manager.cc
|
|
stream_plan.cc
|
|
stream_receive_task.cc
|
|
stream_request.cc
|
|
stream_result_future.cc
|
|
stream_session.cc
|
|
stream_session_state.cc
|
|
stream_summary.cc
|
|
stream_task.cc
|
|
stream_transfer_task.cc)
|
|
target_include_directories(streaming
|
|
PUBLIC
|
|
${CMAKE_SOURCE_DIR})
|
|
target_link_libraries(streaming
|
|
PUBLIC
|
|
Seastar::seastar
|
|
xxHash::xxhash
|
|
PRIVATE
|
|
replica)
|
|
|
|
check_headers(check-headers streaming
|
|
GLOB_RECURSE ${CMAKE_CURRENT_SOURCE_DIR}/*.hh)
|