35 Pass in a version of output
37 main_name Is the name of you main file. By default, this might be
38 Main.cpp, but you might want to have different main files for
39 different experiments. Please do not give the file an extension.
41 output.makefile.add_h_file( main_name +
".h", generated=
True )
42 output.makefile.add_cpp_file( main_name +
".cpp", generated=
True )
46 self.
d[
"MAIN_NAME" ] = main_name
47 self.
d[
"HEADER_FILE_TEMPLATE" ] = os.path.basename(header_file_template)
48 self.
d[
"CPP_FILE_TEMPLATE" ] = os.path.basename(cpp_file_template)
49 self.
d[
"PROJECT_NAME" ] = self.
project.project_name
50 self.
d[
"SUBNAMESPACE" ] =
""
52 self.
d[
"SUBNAMESPACE" ] = self.
project._subdirectory +
"::"
53 self.
d[
"SUBDIRECTORY" ] = self.
project.subdirectory
54 self.
d[
"SUBDIRECTORIES" ] = []
56 for subdirectory
in self.
project.subdirectories:
57 self.
d[
"SUBDIRECTORIES" ].append(subdirectory)
67 output.add(generated_files)