undefined reference to `atan2f'

I am trying to use the Fusion library from github: https://github.com/xioTechnologies/Fusion

After I copy the Fusion source code to my project, and got undefined reference to `atan2f' while compiling. 

I tried to link the math library by adding target_link_libraries(app PRIVATE m) in the CMakeLists.txt, but got more errors.

How do I change the configuration file to fix this compiling issue?

Thanks,

Related