Improve cmake messages.

Now it has a variable that controls whether the messages are displayed or not
Simplified CMakelist code.

Added macro to show messages.