mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
20 lines
411 B
Python
Executable File
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')
|