Topic/cmake float type

New submission of specifying float type integrating the suggestion from sbarthelemy to use compiler option.