cmTestsRule.cxx 466 B

1234567891011121314151617181920
  1. #include "cmTestsRule.h"
  2. // cmExecutableRule
  3. bool cmTestsRule::Invoke(std::vector<std::string>& args)
  4. {
  5. if(args.size() < 1 )
  6. {
  7. this->SetError("called with incorrect number of arguments");
  8. return false;
  9. }
  10. for(std::vector<std::string>::iterator i = args.begin();
  11. i != args.end(); ++i)
  12. {
  13. cmClassFile file;
  14. file.SetName((*i).c_str(), m_Makefile->GetCurrentDirectory());
  15. m_Makefile->AddExecutable(file);
  16. }
  17. return true;
  18. }