Use ECM to mark the target as console application
The original patch was using CMake target properties but the ECM module provides a cross-platform function for that purpose.
The original patch was using CMake target properties but the ECM module provides a cross-platform function for that purpose.