I’m storing data for unit tests in its own test_data/ directory (mimicing the /data in the project directory).
Currently i pass directory paths to the code using getDataDirectory() in a paths.h/paths.cpp.in file and use configure_file() to resolve getDataDirectory().
For my tests I would like to be able to change the output of getDataDirectory() to the test_data directory, depending on which target/executable is being built.
Is this possible? best practise? I’m willing to change the general approach if it would make for a more modern approach/cleaner project
cheers