[backport:2.6][!542] Export root of absolute build directory tree to CMake
While this change adds new features to the 2.6 release, it is required to later create a stable configuration for CI modules that use dune-testtools.
See merge request !542 (merged)