cmLinkLibrariesCommand.h 1.3 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 cmLinkLibrariesCommand_h
  4. #define cmLinkLibrariesCommand_h
  5. #include <cmConfigure.h>
  6. #include <string>
  7. #include <vector>
  8. #include "cmCommand.h"
  9. #include "cmTypeMacro.h"
  10. class cmExecutionStatus;
  11. /** \class cmLinkLibrariesCommand
  12. * \brief Specify a list of libraries to link into executables.
  13. *
  14. * cmLinkLibrariesCommand is used to specify a list of libraries to link
  15. * into executable(s) or shared objects. The names of the libraries
  16. * should be those defined by the LIBRARY(library) command(s).
  17. */
  18. class cmLinkLibrariesCommand : public cmCommand
  19. {
  20. public:
  21. /**
  22. * This is a virtual constructor for the command.
  23. */
  24. cmCommand* Clone() CM_OVERRIDE { return new cmLinkLibrariesCommand; }
  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) CM_OVERRIDE;
  31. /**
  32. * The name of the command as specified in CMakeList.txt.
  33. */
  34. std::string GetName() const CM_OVERRIDE { return "link_libraries"; }
  35. cmTypeMacro(cmLinkLibrariesCommand, cmCommand);
  36. };
  37. #endif