improved the cmake files