CMakeLibTests: Generate `testConfig.h` with source/build paths defined

And use it in all tests that had their particular files before.
6 files changed