Created
March 19, 2019 22:23
-
-
Save tbttfox/b1ca3daceb8ebb5f5b8dd159605a778b to your computer and use it in GitHub Desktop.
Batch file I use to build a cmake project requiring maya 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setlocal | |
SET BUILD=mayabuild18 | |
SET MAYA_VERSION=2018 | |
SET COMPILER=Visual Studio 15 2017 Win64 | |
SET PFX=%~dp0 | |
cd %PFX% | |
rmdir %BUILD% /s /q | |
mkdir %BUILD% | |
cd %BUILD% | |
cmake ^ | |
-DMAYA_VERSION=%MAYA_VERSION% ^ | |
-G "%COMPILER%" ..\ | |
cmake --build . --config Release --target INSTALL | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also, I often comment out line 17 and compile directly from visual studio when I'm in development.
Comments in .bat files start with "REM"