cmLinkLibrariesCommand.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 cmLinkLibrariesCommand_h
  4. #define cmLinkLibrariesCommand_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include <string>
  7. #include <vector>
  8. #include "cmCommand.h"
  9. class cmExecutionStatus;
  10. /** \class cmLinkLibrariesCommand
  11. * \brief Specify a list of libraries to link into executables.
  12. *
  13. * cmLinkLibrariesCommand is used to specify a list of libraries to link
  14. * into executable(s) or shared objects. The names of the libraries
  15. * should be those defined by the LIBRARY(library) command(s).
  16. */
  17. class cmLinkLibrariesCommand : public cmCommand
  18. {
  19. public:
  20. /**
  21. * This is a virtual constructor for the command.
  22. */
  23. cmCommand* Clone() override { return new cmLinkLibrariesCommand; }
  24. /**
  25. * This is called when the command is first encountered in
  26. * the CMakeLists.txt file.
  27. */
  28. bool InitialPass(std::vector<std::string> const& args,
  29. cmExecutionStatus& status) override;
  30. };
  31. #endif