Make output directories configurable via OUTPUT_ROOT in CMakeLists.txt for samples (#31693)
When redirecting the bin directory by OUTPUT_ROOT path to any other
location, it gets split into parts — one part (related to samples)
remains in the same location, while the other part (tests and core
libraries) is moved to the specified directory. The fix is aimed at
resolving this issue.
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Oleg Pipikin <pipikinoleg@gmail.com>