Added support for cmake system.