fixed cmake policy warnings
added sections to cmake