Skip to content

Latest commit

 

History

History
34 lines (16 loc) · 1.56 KB

BUILDING.md

File metadata and controls

34 lines (16 loc) · 1.56 KB

Building the plug-in

Note

I learned about using CMake for Maya plug-ins from Chad Vernon's YouTube videos. Well worth a watch if you're interested.

Chad Vernon - CMake

Pre-requisites

You'll need a recent version of CMake installed and also the correct version of Visual Studio to match the Maya version you're interested in building the plug-in for. Obviously you'll need Maya installed too.

Also, I didn't realise until I tried to do a build for 2016 that the devkit doesn't come bundled with the Maya install anymore. You have to download it from Autodesk.

Build

  1. Open a command prompt with the build directory as your current working directory. Make sure the build directory is empty. You can run clean.bat in the root directory to do this.

  2. Using Maya 2015 as an example run this command.

     cmake -G "Visual Studio 11 2012 Win64" -DMAYA_VERSION=2015 ../
    

    For other Maya versions you'll need to change the MAYA_VERSION flag and also use the correct Visual Studio argument. You can see a list of the ones available by doing this.

     cmake -G
    
  3. Once you've created the Visual Studio projects you can build the plugins by hand by opening the project file located in the build folder in Visual Studio or use the following command (again with the build directory as the cwd).

     cmake --buid . --config Release --target Install
    
  4. Once it's done everything will be located in the \install\<Maya Version> directory.