Include FindMaya.cmake in your user-created CMake module path. If you don't have one, you should. Follow these steps:
- Create a
cmake
(or whatever name you like) folder at the same level as yourCMakeLists.txt
. - Open your
CMakeLists.txt
and add a reference to that path (SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
).
find_package(Maya)
will do.
This module currently works only for a Maya 2012 distribution installed on Mac OS X. It needs to be extensively expanded. See collaboration.
Collaboration is encouraged thought forks and pull requests.