cmParseArgumentsCommand.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2015 Matthias Maennich <[email protected]>
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmParseArgumentsCommand_h
  11. #define cmParseArgumentsCommand_h
  12. #include "cmCommand.h"
  13. /** \class cmParseArgumentsCommand
  14. *
  15. */
  16. class cmParseArgumentsCommand : public cmCommand
  17. {
  18. public:
  19. /**
  20. * This is a virtual constructor for the command.
  21. */
  22. virtual cmCommand* Clone()
  23. {
  24. return new cmParseArgumentsCommand;
  25. }
  26. /**
  27. * This is called when the command is first encountered in
  28. * the CMakeLists.txt file.
  29. */
  30. virtual bool InitialPass(std::vector<std::string> const& args,
  31. cmExecutionStatus &status);
  32. /**
  33. * This determines if the command is invoked when in script mode.
  34. */
  35. virtual bool IsScriptable() const { return true; }
  36. /**
  37. * The name of the command as specified in CMakeList.txt.
  38. */
  39. virtual std::string GetName() const { return "cmake_parse_arguments";}
  40. cmTypeMacro(cmParseArgumentsCommand, cmCommand);
  41. };
  42. #endif