summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorFranck Bettinger <bettingf@cs.man.ac.uk>2002-09-11 20:44:52 (GMT)
committerFranck Bettinger <bettingf@cs.man.ac.uk>2002-09-11 20:44:52 (GMT)
commit3507ef55c678be680083e6fc67c25e13c7b70fc4 (patch)
tree12c02f6ade8b5de15af45a6ea8d8dce89c127487 /Source
parentdffde0c4fa2c1cdf49acb35f5d0b5babf895c95f (diff)
downloadCMake-3507ef55c678be680083e6fc67c25e13c7b70fc4.zip
CMake-3507ef55c678be680083e6fc67c25e13c7b70fc4.tar.gz
CMake-3507ef55c678be680083e6fc67c25e13c7b70fc4.tar.bz2
corrected the generated lists .h in header list and .cxx in sources list
Diffstat (limited to 'Source')
-rw-r--r--Source/cmQTWrapUICommand.cxx11
1 files 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<std::string> 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<std::string> 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<std::string> const& argsIn)
}
m_Makefile->AddDefinition(m_SourceList.c_str(), sourceListValue.c_str());
+ m_Makefile->AddDefinition(m_HeaderList.c_str(), headerListValue.c_str());
return true;
}