Updated the cmake file.

Removed visual studio warnings. Changed to lowercaser.