spinscale: split probe harness from test support.

Move ProbeComponentThreadHarness into spinscale_probe_support (sscl::probe) so tools can link it without gtest; keep a sscl::tests compatibility shim.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-11 22:03:19 -04:00
co-authored by Cursor
parent 7c9bec7b9c
commit 15ebf375ef
6 changed files with 110 additions and 59 deletions
+15
View File
@@ -162,6 +162,21 @@ endif()
option(LIBSPINSCALE_BUILD_TESTS "Build libspinscale unit tests"
${_libspinscaleTestsDefault})
option(LIBSPINSCALE_BUILD_PROBE_SUPPORT
"Build spinscale probe component-thread harness (tools and tests)"
OFF)
# Tests always need the probe harness; tools may request it via cache/root.
if(LIBSPINSCALE_BUILD_TESTS)
set(LIBSPINSCALE_BUILD_PROBE_SUPPORT ON CACHE BOOL
"Build spinscale probe component-thread harness (tools and tests)"
FORCE)
endif()
if(LIBSPINSCALE_BUILD_PROBE_SUPPORT)
add_subdirectory(probe)
endif()
if(LIBSPINSCALE_BUILD_TESTS)
if(NOT TARGET gtest AND NOT TARGET gtest_main)
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)