add cm files to cmake mode