Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Core build only: the plot:: library (vargalabs/plots) is not installed here,
# so the opt-in svg example/test auto-skip via find_package(plot). svg coverage
# is exercised locally until plot is installable in CI (no private cross-repo
# checkout/auth wired up).
name: ci

on:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# build
/build/
/build_*/
/cmake-build-*/
*.o
*.a
Expand Down
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ target_include_directories(bench INTERFACE
)
target_compile_features(bench INTERFACE cxx_std_23)

# Optional external plot:: library (vargalabs/plots). When present, the opt-in
# SVG sink example/test (include/bench/sink/svg.hpp -> <plot/all>) is built;
# when absent the bench core still configures, builds, and tests cleanly.
find_package(plot CONFIG QUIET)

option(BENCH_BUILD_TESTS "Build smoke tests" ON)
if(BENCH_BUILD_TESTS)
enable_testing()
Expand Down
24 changes: 9 additions & 15 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,12 @@ add_executable(example_sinks sinks.cpp)
target_link_libraries(example_sinks PRIVATE bench::bench)
set_target_properties(example_sinks PROPERTIES OUTPUT_NAME sinks)

add_executable(example_heatmap heatmap.cpp)
target_link_libraries(example_heatmap PRIVATE bench::bench)
set_target_properties(example_heatmap PROPERTIES OUTPUT_NAME heatmap)

add_executable(example_svg_sink svg_sink.cpp)
target_link_libraries(example_svg_sink PRIVATE bench::bench)
set_target_properties(example_svg_sink PROPERTIES OUTPUT_NAME svg_sink)

add_executable(example_line_chart line_chart.cpp)
target_link_libraries(example_line_chart PRIVATE bench::bench)
set_target_properties(example_line_chart PROPERTIES OUTPUT_NAME line_chart)

add_executable(example_scatter scatter.cpp)
target_link_libraries(example_scatter PRIVATE bench::bench)
set_target_properties(example_scatter PROPERTIES OUTPUT_NAME scatter)
# The svg_sink demo pulls in the opt-in <bench/sink/svg.hpp>, which needs the
# external plot:: library. Only build it when find_package(plot) succeeded.
if(plot_FOUND)
add_executable(example_svg_sink svg_sink.cpp)
target_link_libraries(example_svg_sink PRIVATE bench::bench plot::plot)
set_target_properties(example_svg_sink PROPERTIES OUTPUT_NAME svg_sink)
else()
message(STATUS "plot not found — skipping svg_sink example")
endif()
50 changes: 0 additions & 50 deletions examples/heatmap.cpp

This file was deleted.

36 changes: 0 additions & 36 deletions examples/line_chart.cpp

This file was deleted.

36 changes: 0 additions & 36 deletions examples/scatter.cpp

This file was deleted.

20 changes: 0 additions & 20 deletions include/plot/all

This file was deleted.

Loading
Loading