Migrated to cmake