Moved the settings of CMAKE and DOT support to separate files.