diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-05-11 14:53:17 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-05-11 14:53:17 (GMT) |
commit | 639f1fa2392345be8afbdb1d0866d342d5923bbf (patch) | |
tree | 4e594126688fb699d195dfec984ff4909b910b0b /Source/cmDSPWriter.cxx | |
parent | 4139f15de65ec1d1670cceb95b4c22b52f5448c3 (diff) | |
download | CMake-639f1fa2392345be8afbdb1d0866d342d5923bbf.zip CMake-639f1fa2392345be8afbdb1d0866d342d5923bbf.tar.gz CMake-639f1fa2392345be8afbdb1d0866d342d5923bbf.tar.bz2 |
added registry entry support and windows app support
Diffstat (limited to 'Source/cmDSPWriter.cxx')
-rw-r--r-- | Source/cmDSPWriter.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/cmDSPWriter.cxx b/Source/cmDSPWriter.cxx index 443732c..397c691 100644 --- a/Source/cmDSPWriter.cxx +++ b/Source/cmDSPWriter.cxx @@ -100,6 +100,9 @@ void cmDSPMakefile::OutputDSPFile() case cmTarget::EXECUTABLE: this->SetBuildType(EXECUTABLE,l->first.c_str()); break; + case cmTarget::WIN32_EXECUTABLE: + this->SetBuildType(WIN32_EXECUTABLE,l->first.c_str()); + break; case cmTarget::UTILITY: this->SetBuildType(UTILITY, l->first.c_str()); break; @@ -390,6 +393,12 @@ void cmDSPMakefile::SetBuildType(BuildType b, const char *libName) m_DSPFooterTemplate = root; m_DSPFooterTemplate += "/EXEFooter.dsptemplate"; break; + case WIN32_EXECUTABLE: + m_DSPHeaderTemplate = m_Makefile->GetHomeDirectory(); + m_DSPHeaderTemplate += "/CMake/Source/EXEWinHeader.dsptemplate"; + m_DSPFooterTemplate = m_Makefile->GetHomeDirectory(); + m_DSPFooterTemplate += "/CMake/Source/EXEFooter.dsptemplate"; + break; case UTILITY: m_DSPHeaderTemplate = root; m_DSPHeaderTemplate += "/UtilityHeader.dsptemplate"; @@ -461,7 +470,7 @@ void cmDSPMakefile::WriteDSPHeader(std::ostream& fout, const char *libName, { // add libraries to executables and dlls (but never include // a library in a library, bad recursion) - if (!(target.GetType() == cmTarget::LIBRARY) || + if (target.GetType() != cmTarget::LIBRARY || (m_LibraryBuildType == DLL && libName != j->first)) { std::string lib = j->first; |