An attempt at using cmake properly.