diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2000-09-27 19:01:19 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2000-09-27 19:01:19 (GMT) |
commit | 74c1345333b456eb34480c987bc186ef2af3c536 (patch) | |
tree | 0c0751e4bfef94831377d7f5e20202b27cd06de9 /Source/cmDSWWriter.cxx | |
parent | 1e3ba0f1d72873233193ce69614fd4bd880e8fc5 (diff) | |
download | CMake-74c1345333b456eb34480c987bc186ef2af3c536.zip CMake-74c1345333b456eb34480c987bc186ef2af3c536.tar.gz CMake-74c1345333b456eb34480c987bc186ef2af3c536.tar.bz2 |
ENH: change ME to LIBRARY and added PROJECT, also remove ITK stuff and replaced with CMake
Diffstat (limited to 'Source/cmDSWWriter.cxx')
-rw-r--r-- | Source/cmDSWWriter.cxx | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/Source/cmDSWWriter.cxx b/Source/cmDSWWriter.cxx index 5ce7b2c..3ee71f9 100644 --- a/Source/cmDSWWriter.cxx +++ b/Source/cmDSWWriter.cxx @@ -33,7 +33,7 @@ void cmDSWMakefile::OutputDSWFile() std::string fname; fname = m_OutputDirectory; fname += "/"; - fname += this->m_LibraryName; + fname += this->m_ProjectName; fname += ".dsw"; std::cerr << "writting dsw file " << fname.c_str() << std::endl; std::ofstream fout(fname.c_str()); @@ -149,7 +149,7 @@ void cmDSWMakefile::WriteDSWFile(std::ostream& fout) si != dspnames.end(); ++si) { // Write the project into the DSW file - this->WriteProject(fout, si->c_str(), dir.c_str()); + this->WriteProject(fout, si->c_str(), dir.c_str(), *k); } // delete the cmDSPMakefile object once done with it to avoid // leaks @@ -162,7 +162,8 @@ void cmDSWMakefile::WriteDSWFile(std::ostream& fout) void cmDSWMakefile::WriteProject(std::ostream& fout, const char* dspname, - const char* dir) + const char* dir, + cmMakefile* project) { fout << "###############################################################################\n\n"; fout << "Project: \"" << dspname << "\"=" @@ -170,7 +171,19 @@ void cmDSWMakefile::WriteProject(std::ostream& fout, fout << "Package=<5>\n{{{\n}}}\n\n"; fout << "Package=<4>\n"; fout << "{{{\n"; - // insert Begin Project Dependency Project_Dep_Name project stuff here + if(project->HasExecutables()) + { + // insert Begin Project Dependency Project_Dep_Name project stuff here + std::vector<std::string>::iterator i, end; + i = project->GetBuildFlags().GetLinkLibraries().begin(); + end = project->GetBuildFlags().GetLinkLibraries().end(); + for(;i!= end; ++i) + { + fout << "Begin Project Dependency\n"; + fout << "Project_Dep_Name " << *i << "\n"; + fout << "End Project Dependency\n"; + } + } fout << "}}}\n\n"; } |