summaryrefslogtreecommitdiffstats
path: root/Source/cmExecutablesRule.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmExecutablesRule.cxx')
-rw-r--r--Source/cmExecutablesRule.cxx20
1 files changed, 20 insertions, 0 deletions
diff --git a/Source/cmExecutablesRule.cxx b/Source/cmExecutablesRule.cxx
new file mode 100644
index 0000000..80be032
--- /dev/null
+++ b/Source/cmExecutablesRule.cxx
@@ -0,0 +1,20 @@
+#include "cmExecutablesRule.h"
+
+// cmExecutableRule
+bool cmExecutablesRule::Invoke(std::vector<std::string>& args)
+{
+ if(args.size() < 1 )
+ {
+ this->SetError("called with incorrect number of arguments");
+ return false;
+ }
+ for(std::vector<std::string>::iterator i = args.begin();
+ i != args.end(); ++i)
+ {
+ cmClassFile file;
+ file.SetName((*i).c_str(), m_Makefile->GetCurrentDirectory());
+ m_Makefile->AddExecutable(file);
+ }
+ return true;
+}
+