This might be quite a nasty hack, so I'd like to solicit some feedback
on what the best course to take with it is. I've symlinked the benchmark lib
and XRay microbenchmark sources into LNTBased/XRay. When the test is run, cmake
is invoked and the retref-bench binary is built. When it is run, its output is
parsed and the appropriate TestSamples objects are returned.
This is to accomplish a TODO item in https://reviews.llvm.org/D32272#794759 :
"In the future teach LNT to understand the Google Benchmark output."
This one you probably want to move into either the MicroBenchmarks/CMakeLists.txt file so it gets added if any of the microbenchmarks are built. Then from here you can just add a dependency to the executable besides adding the target_link_libraries.
This should address the multiple build problem you were describing (i.e. for each of the different micro benchmark runs).