Added cmake common function to remove duplicated code in CMakefiles.txt files       set_common_build_variables()
Added cmake common function to remove duplicated code in CMakefiles.txt files
      set_common_build_variables()

Change-Id: Ic82a9532029f94b31823ec2bd3dd24310f5fbac6
Tested: Mac OS

google/motive,google/motive