Attempting to write a CMake function that does testing with an interactive prompt.

Not sure what you are implying as I have read the documentation which you linked a couple of times when attempting to debug my cmake codes.

Anyway, I managed to get a working solution, not perfect but working.