VS: Add module definition `.def` files to .vcxproj files (#15313)

Make them appear in the IDE project tree for reference by developers.
This commit is contained in:
Tim Grothe 2015-11-02 15:24:25 +01:00 committed by Brad King
parent 247c168b98
commit e7e713cc05
1 changed files with 6 additions and 0 deletions

View File

@ -1613,6 +1613,12 @@ void cmVisualStudio10TargetGenerator::WriteAllSources()
(*this->BuildFileStream ) << cmVS10EscapeXML(obj) << "\" />\n"; (*this->BuildFileStream ) << cmVS10EscapeXML(obj) << "\" />\n";
} }
if (cmSourceFile const* defsrc =
this->GeneratorTarget->GetModuleDefinitionFile(""))
{
this->WriteSource("None", defsrc);
}
if (this->IsMissingFiles) if (this->IsMissingFiles)
{ {
this->WriteMissingFiles(); this->WriteMissingFiles();