5 message(FATAL_ERROR
"Directory ${dir} doesn't exist!")
11 set(xml_subprojects ${xml_subprojects}
" <SubProject name=\"SuperBuild\">\n")
14 foreach(target ${targets})
16 # Remarks: Project.xml should contains all sub-project. That way
17 # all dashboards should submit a similar file.
19 set(xml_subprojects ${xml_subprojects}
" <SubProject name=\"${target}\">\n")
22 set(xml_subprojects ${xml_subprojects}
" <Dependency name=\"SuperBuild\"/>\n")
25 # Generate XML related to the dependencies
26 #foreach(dependency_name ${dependencies})
27 # set(xml_subprojects ${xml_subprojects} " <Dependency name=\"${dependency_name}\"/>\n")
30 set(xml_subprojects ${xml_subprojects}
" </SubProject>\n")
33 set(xml_subprojects ${xml_subprojects}
" <SubProject name=\"Documentation\">\n")
34 foreach(subproject ${targets})
35 set(xml_subprojects ${xml_subprojects}
" <Dependency name=\"${subproject}\"/>\n")
37 set(xml_subprojects ${xml_subprojects}
" </SubProject>\n")
39 set(xml_content
"<Project name=\"${name}\">\n${xml_subprojects}</Project>")
42 file(WRITE ${filename} ${xml_content})
43 message(STATUS "Generated: ${
filename}
")
static const std::string filename
mitkFunctionGenerateProjectXml(dir, name, targets, is_superbuild)