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