1
0

cmWin32IncludeDirectoryCommand.cxx 999 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*=========================================================================
  2. Program: Insight Segmentation & Registration Toolkit
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2000 National Library of Medicine
  8. All rights reserved.
  9. See COPYRIGHT.txt for copyright details.
  10. =========================================================================*/
  11. #include "cmWin32IncludeDirectoryCommand.h"
  12. #include "cmCacheManager.h"
  13. // cmWin32IncludeDirectoryCommand
  14. cmWin32IncludeDirectoryCommand::cmWin32IncludeDirectoryCommand()
  15. {
  16. #ifndef _WIN32
  17. this->EnabledOff();
  18. #endif
  19. }
  20. bool cmWin32IncludeDirectoryCommand::Invoke(std::vector<std::string>& args)
  21. {
  22. if(args.size() < 1 )
  23. {
  24. this->SetError("called with incorrect number of arguments");
  25. return false;
  26. }
  27. for(std::vector<std::string>::iterator i = args.begin();
  28. i != args.end(); ++i)
  29. {
  30. m_Makefile->AddIncludeDirectory((*i).c_str());
  31. }
  32. return true;
  33. }