cmCustomCommandLines.h 954 B

1234567891011121314151617181920212223242526272829303132
  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 cmCustomCommandLines_h
  4. #define cmCustomCommandLines_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include <initializer_list>
  7. #include <string>
  8. #include <vector>
  9. #include <cm/string_view> // IWYU pragma: keep
  10. /** Data structure to represent a single command line. */
  11. class cmCustomCommandLine : public std::vector<std::string>
  12. {
  13. };
  14. /** Data structure to represent a list of command lines. */
  15. class cmCustomCommandLines : public std::vector<cmCustomCommandLine>
  16. {
  17. };
  18. /** Return a command line from a list of command line parts. */
  19. cmCustomCommandLine cmMakeCommandLine(
  20. std::initializer_list<cm::string_view> ilist);
  21. /** Return a command line vector with a single command line. */
  22. cmCustomCommandLines cmMakeSingleCommandLine(
  23. std::initializer_list<cm::string_view> ilist);
  24. #endif