CTest should support coloured output
It would be pretty great if CTest could support coloured console output. There's a StackOverflow issue about it here, but from the lack of answers I assume it isn't possible.
The way I would do it is to add a command line flag, --color=on/off/auto
. The auto mode would be the default and would check the terminal type and environment variables to try to decide whether or not to use colours. Unfortunately I remember from experience that there is no standard way to do this, and I vaguely recall that there is already a horrible ugly hack in CMake to try to guess.