cmTargetCompileFeaturesCommand.h 1.2 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 cmTargetCompileFeaturesCommand_h
  4. #define cmTargetCompileFeaturesCommand_h
  5. #include <cmConfigure.h>
  6. #include <string>
  7. #include <vector>
  8. #include "cmTargetPropCommandBase.h"
  9. #include "cmTypeMacro.h"
  10. class cmCommand;
  11. class cmExecutionStatus;
  12. class cmTarget;
  13. class cmTargetCompileFeaturesCommand : public cmTargetPropCommandBase
  14. {
  15. cmCommand* Clone() CM_OVERRIDE { return new cmTargetCompileFeaturesCommand; }
  16. bool InitialPass(std::vector<std::string> const& args,
  17. cmExecutionStatus& status) CM_OVERRIDE;
  18. std::string GetName() const CM_OVERRIDE { return "target_compile_features"; }
  19. cmTypeMacro(cmTargetCompileFeaturesCommand, cmTargetPropCommandBase);
  20. private:
  21. void HandleImportedTarget(const std::string& tgt) CM_OVERRIDE;
  22. void HandleMissingTarget(const std::string& name) CM_OVERRIDE;
  23. bool HandleDirectContent(cmTarget* tgt,
  24. const std::vector<std::string>& content,
  25. bool prepend, bool system) CM_OVERRIDE;
  26. std::string Join(const std::vector<std::string>& content) CM_OVERRIDE;
  27. };
  28. #endif