From 3507ef55c678be680083e6fc67c25e13c7b70fc4 Mon Sep 17 00:00:00 2001 From: Franck Bettinger Date: Wed, 11 Sep 2002 16:44:52 -0400 Subject: corrected the generated lists .h in header list and .cxx in sources list --- Source/cmQTWrapUICommand.cxx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Source/cmQTWrapUICommand.cxx b/Source/cmQTWrapUICommand.cxx index 8e3827e..bacd4e2 100644 --- a/Source/cmQTWrapUICommand.cxx +++ b/Source/cmQTWrapUICommand.cxx @@ -50,6 +50,7 @@ bool cmQTWrapUICommand::InitialPass(std::vector const& argsIn) m_HeaderList = args[1]; m_SourceList = args[2]; std::string sourceListValue; + std::string headerListValue; const char *def = m_Makefile->GetDefinition(m_SourceList.c_str()); if (def) { @@ -96,12 +97,17 @@ bool cmQTWrapUICommand::InitialPass(std::vector const& argsIn) m_Makefile->AddSource(moc_file); // create the list of sources + if (headerListValue.size() > 0) + { + headerListValue += ";"; + } + headerListValue += header_file.GetSourceName() + ".h"; + + // create the list of sources if (sourceListValue.size() > 0) { sourceListValue += ";"; } - sourceListValue += header_file.GetSourceName() + ".h"; - sourceListValue += ";"; sourceListValue += source_file.GetSourceName() + ".cxx"; sourceListValue += ";"; sourceListValue += moc_file.GetSourceName() + ".cxx"; @@ -109,6 +115,7 @@ bool cmQTWrapUICommand::InitialPass(std::vector const& argsIn) } m_Makefile->AddDefinition(m_SourceList.c_str(), sourceListValue.c_str()); + m_Makefile->AddDefinition(m_HeaderList.c_str(), headerListValue.c_str()); return true; } -- cgit v0.12