feat(build): install/export rules, umbrella header, verified consumer

This commit is contained in:
Martino Ferrari committed 2026-09-28 03:17:20 +02:00
1 parent 377cca8e9b
commit 0972903d27
11 files changed
+333 -7

No files matched your search

+12
View File
@@ -73,3 +73,15 @@ target_compile_definitions(plot_tests PRIVATE PLOT_PYRAMID_COUNT_COVERS
plot_apply_warnings(plot_tests)
add_test(NAME plot_tests COMMAND plot_tests)
# The GL tests create a real EGL context, and llvmpipe's teardown leaks driver
# allocations that are not this library's. The suppressions file names those
# libraries and nothing else (see cmake/plot_asan_suppressions.txt); a report from
# anything under include/plot/ or src/ is still an error. The environment is set
# on the test rather than in a preset so `ctest --test-dir build/asan` gets it
# however it is launched, and print_suppressions makes the counts visible -- a run
# must show what it suppressed, not hide it.
if(PLOT_ASAN_ENABLED)
set_tests_properties(plot_tests PROPERTIES ENVIRONMENT
"ASAN_OPTIONS=detect_leaks=1:print_suppressions=1:suppressions=${CMAKE_SOURCE_DIR}/cmake/plot_asan_suppressions.txt")
endif()