diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-11-19 14:40:11 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-11-19 14:40:11 (GMT) |
commit | 49840778b92fbdb691eb90c15eae68f770cbc1ad (patch) | |
tree | c1975a4beb4276e2624f449f555503184f3241d1 /Source/cmLocalVisualStudio7Generator.cxx | |
parent | 910409750216a302ecb559f50255feaaee18df95 (diff) | |
download | CMake-49840778b92fbdb691eb90c15eae68f770cbc1ad.zip CMake-49840778b92fbdb691eb90c15eae68f770cbc1ad.tar.gz CMake-49840778b92fbdb691eb90c15eae68f770cbc1ad.tar.bz2 |
ENH: add some more properties for visual studio projects
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio7Generator.cxx | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index 3af2ba4..fbd628a 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -1321,7 +1321,7 @@ void cmLocalVisualStudio7Generator::OutputTargetRules(std::ostream& fout, void cmLocalVisualStudio7Generator::WriteProjectStart(std::ostream& fout, const char *libName, - cmTarget &, + cmTarget & target, std::vector<cmSourceGroup> &) { fout << "<?xml version=\"1.0\" encoding = \"Windows-1252\"?>\n" @@ -1342,11 +1342,20 @@ cmLocalVisualStudio7Generator::WriteProjectStart(std::ostream& fout, fout << "\tVersion=\"7.00\"\n"; } } - - fout << "\tName=\"" << libName << "\"\n" + const char* projLabel = target.GetProperty("PROJECT_LABEL"); + if(!projLabel) + { + projLabel = libName; + } + const char* keyword = target.GetProperty("VS_KEYWORD"); + if(!keyword) + { + keyword = "Win32Proj"; + } + fout << "\tName=\"" << projLabel << "\"\n" << "\tSccProjectName=\"\"\n" << "\tSccLocalPath=\"\"\n" - << "\tKeyword=\"Win32Proj\">\n" + << "\tKeyword=\"" << keyword << "\">\n" << "\t<Platforms>\n" << "\t\t<Platform\n\t\t\tName=\"Win32\"/>\n" << "\t</Platforms>\n"; |