cmake now attempts to generate and compile a simple mex file at configure time and reports the working status of the generator and compiler, rather than just naively saying Matlab exists

This commit is contained in:
hbristow
2013-06-18 23:00:48 +10:00
parent fc16cfcf41
commit 804d0924c9
7 changed files with 85 additions and 28 deletions

View File

@@ -18,10 +18,12 @@ class MatlabWrapperGenerator(object):
# get the file name
name = os.path.splitext(os.path.basename(file))[0]
ns[name] = parser.parse(file)
print ns[name]
# cleanify the parser output
parse_tree = ParseTree()
parse_tree.build(ns)
print parse_tree
# setup the template engine
jtemplate = Environment(loader=PackageLoader('templates', ''), trim_blocks=True, lstrip_blocks=True)