cmExportLibraryDependenciesCommand.h 885 Bytes
Newer Older
1 2
/* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
   file Copyright.txt or https://cmake.org/licensing for details.  */
3 4 5
#ifndef cmExportLibraryDependenciesCommand_h
#define cmExportLibraryDependenciesCommand_h

6
#include "cmConfigure.h" // IWYU pragma: keep
7

8 9 10
#include <string>
#include <vector>

11 12
#include "cm_memory.hxx"

13
#include "cmCommand.h"
14 15

class cmExecutionStatus;
16 17 18 19

class cmExportLibraryDependenciesCommand : public cmCommand
{
public:
20
  std::unique_ptr<cmCommand> Clone() override
21
  {
22
    return cm::make_unique<cmExportLibraryDependenciesCommand>();
23 24
  }
  bool InitialPass(std::vector<std::string> const& args,
25
                   cmExecutionStatus& status) override;
26

27 28
  void FinalPass() override;
  bool HasFinalPass() const override { return true; }
29 30

private:
31
  std::string Filename;
32
  bool Append = false;
33
  void ConstFinalPass() const;
34 35 36
};

#endif