Add python script to build all modules with warnings as errors

This commit is contained in:
Alexander Bock
2015-05-27 11:34:17 +02:00
parent 227b1dafa7
commit fb222d4e7a

View File

@@ -0,0 +1,14 @@
import os
from subprocess import call
# To be called from the build folder in the OpenSpace
modules = os.listdir("../modules")
cmd = ["cmake"]
cmd.append("-DGHOUL_USE_DEVIL=OFF")
cmd.append("-OPENSPACE_WARNINGS_AS_ERRORS=ON")
for m in modules:
cmd.append("-DOPENSPACE_MODULE_" + m.upper() + "=ON")
cmd.append("..")
call(cmd)