Compilation using cmake