cmAuxSourceDirectoryCommand.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 cmAuxSourceDirectoryCommand_h
  4. #define cmAuxSourceDirectoryCommand_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include <string>
  7. #include <vector>
  8. #include "cm_memory.hxx"
  9. #include "cmCommand.h"
  10. class cmExecutionStatus;
  11. /** \class cmAuxSourceDirectoryCommand
  12. * \brief Specify auxiliary source code directories.
  13. *
  14. * cmAuxSourceDirectoryCommand specifies source code directories
  15. * that must be built as part of this build process. This directories
  16. * are not recursively processed like the SUBDIR command (cmSubdirCommand).
  17. * A side effect of this command is to create a subdirectory in the build
  18. * directory structure.
  19. */
  20. class cmAuxSourceDirectoryCommand : public cmCommand
  21. {
  22. public:
  23. /**
  24. * This is a virtual constructor for the command.
  25. */
  26. std::unique_ptr<cmCommand> Clone() override
  27. {
  28. return cm::make_unique<cmAuxSourceDirectoryCommand>();
  29. }
  30. /**
  31. * This is called when the command is first encountered in
  32. * the CMakeLists.txt file.
  33. */
  34. bool InitialPass(std::vector<std::string> const& args,
  35. cmExecutionStatus& status) override;
  36. };
  37. #endif