cmake/Source/cmTargetCompileDefinitionsCommand.h

42 lines
1.2 KiB
C
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
2013-03-16 19:13:01 +02:00
#ifndef cmTargetCompileDefinitionsCommand_h
#define cmTargetCompileDefinitionsCommand_h
2018-01-26 17:06:56 +01:00
#include "cmConfigure.h" // IWYU pragma: keep
2017-07-20 19:35:53 +02:00
2017-04-14 19:02:05 +02:00
#include <string>
#include <vector>
2013-03-16 19:13:01 +02:00
#include "cmTargetPropCommandBase.h"
2017-04-14 19:02:05 +02:00
class cmCommand;
class cmExecutionStatus;
class cmTarget;
2013-03-16 19:13:01 +02:00
class cmTargetCompileDefinitionsCommand : public cmTargetPropCommandBase
{
public:
/**
* This is a virtual constructor for the command.
*/
2018-01-26 17:06:56 +01:00
cmCommand* Clone() override { return new cmTargetCompileDefinitionsCommand; }
2013-03-16 19:13:01 +02:00
/**
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
2016-10-30 18:24:19 +01:00
bool InitialPass(std::vector<std::string> const& args,
2018-01-26 17:06:56 +01:00
cmExecutionStatus& status) override;
2013-03-16 19:13:01 +02:00
private:
2018-01-26 17:06:56 +01:00
void HandleMissingTarget(const std::string& name) override;
2013-03-16 19:13:01 +02:00
2016-10-30 18:24:19 +01:00
bool HandleDirectContent(cmTarget* tgt,
const std::vector<std::string>& content,
2018-01-26 17:06:56 +01:00
bool prepend, bool system) override;
std::string Join(const std::vector<std::string>& content) override;
2013-03-16 19:13:01 +02:00
};
#endif