WORKING_DIRECTORY

From Get docs
Cmake/docs/3.21/prop test/working directory


WORKING_DIRECTORY

The directory from which the test executable will be called.

If this is not set, the test will be run with the working directory set to the binary directory associated with where the test was created (i.e. the CMAKE_CURRENT_BINARY_DIR for where add_test() was called).

© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/prop_test/WORKING_DIRECTORY.html