proper cmake file to build on macos x