#  Copyright (C) GridGain Systems. All Rights Reserved.
#  _________        _____ __________________        _____
#  __  ____/___________(_)______  /__  ____/______ ____(_)_______
#  _  / __  __  ___/__  / _  __  / _  / __  _  __ `/__  / __  __ \
#  / /_/ /  _  /    _  /  / /_/ /  / /_/ /  / /_/ / _  /  _  / / /
#  \____/   /_/     /_/   \_,__/   \____/   \__,_/  /_/   /_/ /_/

# Shared helpers used by every benchmark binary across benchmarks/. Holds the
# env-driven cluster config, the lazy shared client, the wide-row schema, the
# populate/schema-check logic, and the gbench defaults. Linked by both
# extension-benchmark and client-benchmark.
add_library(gridgain-bench-common STATIC
    bench_common.cpp
    wide_row_schema.cpp
)

target_include_directories(gridgain-bench-common PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

target_link_libraries(gridgain-bench-common PUBLIC
    gridgain9-extension
    benchmark::benchmark
)
