cmAddLibraryCommand.h 961 B

1234567891011121314151617181920212223242526272829303132333435
  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 cmLibrarysCommand_h
  4. #define cmLibrarysCommand_h
  5. #include "cmCommand.h"
  6. /** \class cmLibrarysCommand
  7. * \brief Defines a list of executables to build.
  8. *
  9. * cmLibrarysCommand defines a list of executable (i.e., test)
  10. * programs to create.
  11. */
  12. class cmAddLibraryCommand : public cmCommand
  13. {
  14. public:
  15. /**
  16. * This is a virtual constructor for the command.
  17. */
  18. cmCommand* Clone() CM_OVERRIDE { return new cmAddLibraryCommand; }
  19. /**
  20. * This is called when the command is first encountered in
  21. * the CMakeLists.txt file.
  22. */
  23. bool InitialPass(std::vector<std::string> const& args,
  24. cmExecutionStatus& status) CM_OVERRIDE;
  25. /**
  26. * The name of the command as specified in CMakeList.txt.
  27. */
  28. std::string GetName() const CM_OVERRIDE { return "add_library"; }
  29. };
  30. #endif