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 should work for Maya 2010, 2011, 2012 and 2013 distribution installed on either Windows, Mac OS X or Linux systems. It needs to be extensively expanded. See collaboration.
Collaboration is encouraged thought forks and pull requests.