auto cmake in mac