cmAuxSourceDirectoryCommand.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 "cmCommand.h"
  6. /** \class cmAuxSourceDirectoryCommand
  7. * \brief Specify auxiliary source code directories.
  8. *
  9. * cmAuxSourceDirectoryCommand specifies source code directories
  10. * that must be built as part of this build process. This directories
  11. * are not recursively processed like the SUBDIR command (cmSubdirCommand).
  12. * A side effect of this command is to create a subdirectory in the build
  13. * directory structure.
  14. */
  15. class cmAuxSourceDirectoryCommand : public cmCommand
  16. {
  17. public:
  18. /**
  19. * This is a virtual constructor for the command.
  20. */
  21. cmCommand* Clone() CM_OVERRIDE { return new cmAuxSourceDirectoryCommand; }
  22. /**
  23. * This is called when the command is first encountered in
  24. * the CMakeLists.txt file.
  25. */
  26. bool InitialPass(std::vector<std::string> const& args,
  27. cmExecutionStatus& status) CM_OVERRIDE;
  28. /**
  29. * The name of the command as specified in CMakeList.txt.
  30. */
  31. std::string GetName() const CM_OVERRIDE { return "aux_source_directory"; }
  32. cmTypeMacro(cmAuxSourceDirectoryCommand, cmCommand);
  33. };
  34. #endif