diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-05-11 10:53:17 -0400 |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-05-11 10:53:17 -0400 |
commit | 639f1fa2392345be8afbdb1d0866d342d5923bbf (patch) | |
tree | 4e594126688fb699d195dfec984ff4909b910b0b /Source/cmAddExecutableCommand.cxx | |
parent | 4139f15de65ec1d1670cceb95b4c22b52f5448c3 (diff) | |
download | cmake-639f1fa2392345be8afbdb1d0866d342d5923bbf.tar.gz |
added registry entry support and windows app support
Diffstat (limited to 'Source/cmAddExecutableCommand.cxx')
-rw-r--r-- | Source/cmAddExecutableCommand.cxx | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/Source/cmAddExecutableCommand.cxx b/Source/cmAddExecutableCommand.cxx index 2988c6d3a7..b8955e37d8 100644 --- a/Source/cmAddExecutableCommand.cxx +++ b/Source/cmAddExecutableCommand.cxx @@ -49,11 +49,21 @@ bool cmAddExecutableCommand::Invoke(std::vector<std::string>& args) this->SetError("called with incorrect number of arguments"); return false; } - + std::vector<std::string>::iterator s = args.begin(); - std::vector<std::string> srclists(++s, args.end()); + ++s; + if (*s == "WIN32") + { + ++s; + std::vector<std::string> srclists(s, args.end()); + m_Makefile->AddExecutable(args[0].c_str(),srclists, true); + } + else + { + std::vector<std::string> srclists(s, args.end()); + m_Makefile->AddExecutable(args[0].c_str(),srclists, false); + } - m_Makefile->AddExecutable(args[0].c_str(),srclists); return true; } |