cmLinkDirectoriesCommand.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 cmLinkDirectoriesCommand_h
  4. #define cmLinkDirectoriesCommand_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include <string>
  7. #include <vector>
  8. #include "cmCommand.h"
  9. class cmExecutionStatus;
  10. /** \class cmLinkDirectoriesCommand
  11. * \brief Define a list of directories containing files to link.
  12. *
  13. * cmLinkDirectoriesCommand is used to specify a list
  14. * of directories containing files to link into executable(s).
  15. * Note that the command supports the use of CMake built-in variables
  16. * such as CMAKE_BINARY_DIR and CMAKE_SOURCE_DIR.
  17. */
  18. class cmLinkDirectoriesCommand : public cmCommand
  19. {
  20. public:
  21. /**
  22. * This is a virtual constructor for the command.
  23. */
  24. cmCommand* Clone() override { return new cmLinkDirectoriesCommand; }
  25. /**
  26. * This is called when the command is first encountered in
  27. * the CMakeLists.txt file.
  28. */
  29. bool InitialPass(std::vector<std::string> const& args,
  30. cmExecutionStatus& status) override;
  31. private:
  32. void AddLinkDir(std::string const& dir);
  33. };
  34. #endif