cmSourceGroupCommand.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 cmSourceGroupCommand_h
  4. #define cmSourceGroupCommand_h
  5. #include <cmConfigure.h>
  6. #include <string>
  7. #include <vector>
  8. #include "cmCommand.h"
  9. #include "cmTypeMacro.h"
  10. class cmExecutionStatus;
  11. /** \class cmSourceGroupCommand
  12. * \brief Adds a cmSourceGroup to the cmMakefile.
  13. *
  14. * cmSourceGroupCommand is used to define cmSourceGroups which split up
  15. * source files in to named, organized groups in the generated makefiles.
  16. */
  17. class cmSourceGroupCommand : public cmCommand
  18. {
  19. public:
  20. /**
  21. * This is a virtual constructor for the command.
  22. */
  23. cmCommand* Clone() CM_OVERRIDE { return new cmSourceGroupCommand; }
  24. /**
  25. * This is called when the command is first encountered in
  26. * the CMakeLists.txt file.
  27. */
  28. bool InitialPass(std::vector<std::string> const& args,
  29. cmExecutionStatus& status) CM_OVERRIDE;
  30. /**
  31. * The name of the command as specified in CMakeList.txt.
  32. */
  33. std::string GetName() const CM_OVERRIDE { return "source_group"; }
  34. cmTypeMacro(cmSourceGroupCommand, cmCommand);
  35. };
  36. #endif