cmake mostly works