For unit tests, set CMAKE_RUNTIME_OUTPUT_DIRECTORY to CMAKE_CURRENT_BINARY_DIR.
That way their default working directory is consistent with their location.