Start migrating DIME towards CMake