xlnt/cmake/configure
2015-11-01 23:52:19 -05:00

20 lines
411 B
Python
Executable File

#!/usr/bin/env python3
import os
import subprocess
import sys
os.chdir(os.path.dirname(os.path.abspath(__file__)))
if not os.path.isdir('../build'):
os.mkdir('../build')
generator = 'Unix Makefiles'
if sys.platform == 'darwin':
generator = 'Unix Makefiles'
elif sys.platform == 'win32':
generator = 'Visual Studio 14 2015'
subprocess.call(['cmake3', '-G', generator, '../cmake'], cwd='../build')