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/cmAddExecutableCommand.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/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 2988c6d..b8955e3 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; } |