mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 22:30:07 -05:00
ENH: Create COMPILE_DEFINITIONS property for targets and source files. Create <config>_COMPILE_DEFINITIONS property as per-configuration version. Add Preprocess test to test the feature. Document limitations on Xcode and VS6 generators.
This commit is contained in:
@@ -26,6 +26,7 @@ class cmSourceGroup;
|
||||
struct cmVS7FlagTable;
|
||||
|
||||
class cmLocalVisualStudio7GeneratorOptions;
|
||||
class cmLocalVisualStudio7GeneratorFCInfo;
|
||||
|
||||
/** \class cmLocalVisualStudio7Generator
|
||||
* \brief Write Visual Studio .NET project files.
|
||||
@@ -68,6 +69,7 @@ public:
|
||||
{ this->ExtraFlagTable = table; }
|
||||
private:
|
||||
typedef cmLocalVisualStudio7GeneratorOptions Options;
|
||||
typedef cmLocalVisualStudio7GeneratorFCInfo FCInfo;
|
||||
void ReadAndStoreExternalGUID(const char* name,
|
||||
const char* path);
|
||||
std::string GetBuildTypeLinkerFlags(std::string rootLinkerFlags,
|
||||
@@ -109,7 +111,7 @@ private:
|
||||
void WriteCustomRule(std::ostream& fout,
|
||||
const char* source,
|
||||
const cmCustomCommand& command,
|
||||
const char* extraFlags);
|
||||
FCInfo& fcinfo);
|
||||
void WriteTargetVersionAttribute(std::ostream& fout, cmTarget& target);
|
||||
|
||||
void WriteGroup(const cmSourceGroup *sg,
|
||||
@@ -117,6 +119,8 @@ private:
|
||||
const char *libName, std::vector<std::string> *configs);
|
||||
virtual std::string GetTargetDirectory(cmTarget const&) const;
|
||||
|
||||
friend class cmLocalVisualStudio7GeneratorFCInfo;
|
||||
|
||||
cmVS7FlagTable const* ExtraFlagTable;
|
||||
std::string ModuleDefinitionFile;
|
||||
int Version;
|
||||
|
||||
Reference in New Issue
Block a user