cmAddDefinitionsCommand.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmAddDefinitionsCommand_h
  4. #define cmAddDefinitionsCommand_h
  5. #include "cmCommand.h"
  6. /** \class cmAddDefinitionsCommand
  7. * \brief Specify a list of compiler defines
  8. *
  9. * cmAddDefinitionsCommand specifies a list of compiler defines. These defines
  10. * will be added to the compile command.
  11. */
  12. class cmAddDefinitionsCommand : public cmCommand
  13. {
  14. public:
  15. /**
  16. * This is a virtual constructor for the command.
  17. */
  18. cmCommand* Clone() CM_OVERRIDE { return new cmAddDefinitionsCommand; }
  19. /**
  20. * This is called when the command is first encountered in
  21. * the CMakeLists.txt file.
  22. */
  23. bool InitialPass(std::vector<std::string> const& args,
  24. cmExecutionStatus& status) CM_OVERRIDE;
  25. /**
  26. * The name of the command as specified in CMakeList.txt.
  27. */
  28. std::string GetName() const CM_OVERRIDE { return "add_definitions"; }
  29. cmTypeMacro(cmAddDefinitionsCommand, cmCommand);
  30. };
  31. #endif