diff options
author | Aaron Ten Clay <aarontc@aarontc.com> | 2011-11-23 19:11:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-11-28 16:44:04 (GMT) |
commit | a1f976ce0e62baf513c8726c59aba5f75a0335c6 (patch) | |
tree | 0c65a5f56cc01d0d935bf26041eedda188cfcd0b /Source/cmTarget.cxx | |
parent | 57a85237ac8ebc429ebe442897169bc9369e0380 (diff) | |
download | CMake-a1f976ce0e62baf513c8726c59aba5f75a0335c6.zip CMake-a1f976ce0e62baf513c8726c59aba5f75a0335c6.tar.gz CMake-a1f976ce0e62baf513c8726c59aba5f75a0335c6.tar.bz2 |
VS: Add support for three new project properties (#12586)
VS_GLOBAL_PROJECT_TYPES: A string containing UUIDs to embed in the
Visual Studio project file under <ProjectTypes>.
VS_GLOBAL_KEYWORD: Allows specification of a keyword like "ManagedCProj"
instead of the default "Win32Proj", under <Keyword>
VS_DOTNET_REFERENCES: Semicolon-delimited list of .NET references to add
to the project, which creates a new <ItemGroup>.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index dad0353..d021990 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -1038,6 +1038,29 @@ void cmTarget::DefineProperties(cmake *cm) "Can be set to change the visual studio source code control " "auxpath property."); cm->DefineProperty + ("VS_GLOBAL_PROJECT_TYPES", cmProperty::TARGET, + "Visual Studio project type(s).", + "Can be set to one or more UUIDs recognized by Visual Studio " + "to indicate the type of project. This value is copied " + "verbatim into the generated project file. Example for a " + "managed C++ unit testing project: \"" + "{3AC096D0-A1C2-E12C-1390-A8335801FDAB};" + "{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\". UUIDs are " + "semicolon-delimited."); + cm->DefineProperty + ("VS_GLOBAL_KEYWORD", cmProperty::TARGET, + "Visual Studio project keyword.", + "Sets the \"keyword\" attribute for a generated Visual Studio " + "project. Defaults to \"Win32Proj\". You may wish to override " + "this value with \"ManagedCProj\", for example, in a Visual " + "Studio managed C++ unit test project."); + cm->DefineProperty + ("VS_DOTNET_REFERENCES", cmProperty::TARGET, + "Visual Studio managed project .NET references", + "Adds one or more semicolon-delimited .NET references to a " + "generated Visual Studio project. For example, \"System;" + "System.Windows.Forms\"."); + cm->DefineProperty ("VS_GLOBAL_<variable>", cmProperty::TARGET, "Visual Studio project-specific global variable.", "Tell the Visual Studio generator to set the global variable " |