Learning how to use cmake functions