The Maya librairies you need to build your project need to be added to the LIBRARIES section of your CMakeLists.txt file.
Add only the libraries you need.
Note: The OpenMaya and Foundation libraries must always be included in your project.
OpenMaya and Foundation: Fundamental classes for defining nodes and commands.
OpenMayaUI: Classes for creating user interface elements such as manipulators, contexts, and locators.
OpenMayaAnim: Classes for animation, including deformers and inverse kinematics.
OpenMayaFX: Autodesk Dynamics classes.
OpenMayaRender: Rendering classes.