Added support for CMake.