mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 12:09:48 +00:00
1d829c862c
Automate with: git grep -l '#include <cm_' -- Source \ | xargs sed -i 's/#include <\(cm_.*\)>/#include "\1"/g' git grep -l '#include <cmsys/' -- Source \ | xargs sed -i 's/#include <\(cmsys\/.*\)>/#include "\1"/g' git grep -l '#include <cm[A-Z]' -- Source \ | xargs sed -i 's/#include <\(cm[A-Z].*\)>/#include "\1"/g'
55 lines
1.6 KiB
C++
55 lines
1.6 KiB
C++
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
|
#ifndef cmTargetPropCommandBase_h
|
|
#define cmTargetPropCommandBase_h
|
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "cmCommand.h"
|
|
|
|
class cmTarget;
|
|
|
|
class cmTargetPropCommandBase : public cmCommand
|
|
{
|
|
public:
|
|
enum ArgumentFlags
|
|
{
|
|
NO_FLAGS = 0,
|
|
PROCESS_BEFORE = 1,
|
|
PROCESS_SYSTEM = 2
|
|
};
|
|
|
|
bool HandleArguments(std::vector<std::string> const& args,
|
|
const std::string& prop,
|
|
ArgumentFlags flags = NO_FLAGS);
|
|
|
|
protected:
|
|
std::string Property;
|
|
cmTarget* Target;
|
|
|
|
virtual void HandleInterfaceContent(cmTarget* tgt,
|
|
const std::vector<std::string>& content,
|
|
bool prepend, bool system);
|
|
|
|
private:
|
|
virtual void HandleImportedTarget(const std::string& tgt) = 0;
|
|
virtual void HandleMissingTarget(const std::string& name) = 0;
|
|
|
|
virtual bool HandleDirectContent(cmTarget* tgt,
|
|
const std::vector<std::string>& content,
|
|
bool prepend, bool system) = 0;
|
|
|
|
virtual std::string Join(const std::vector<std::string>& content) = 0;
|
|
|
|
bool ProcessContentArgs(std::vector<std::string> const& args,
|
|
unsigned int& argIndex, bool prepend, bool system);
|
|
bool PopulateTargetProperies(const std::string& scope,
|
|
const std::vector<std::string>& content,
|
|
bool prepend, bool system);
|
|
};
|
|
|
|
#endif
|