Add a test to expose a bug with add_custom_command and ninja.

Ninja Generator is unable to handle an add_custom_command having
a dependency that is generated at build time by a previous target.
Split the GeneratorExpression test into a third part.

Avoid command lines beyond NMake limits.

 http://open.cdash.org/testDetails.php?test=196577461&build=2949683
 expanded command line '...' too long
VS: Add Resx configuration to the vcxproj file

In my project group we are using CMake to generate c++/cli winform
projects and I noticed the work done in commit 79ec7868 (VS: Add Windows
Forms Support, 2013-04-29) was in the right direction for solving some
of the problems we were facing.

The changes as submitted was breaking some functionality in our
projects, so I made some changes that fixes our problems and I believe
that it will also work for others.

* Resx files did not link correctly with the winform h-file so I added
  the Resx configuration to the vcxproj file.

* I removed the functionality for setting <CLRSupport> true for the
  project based on if an resx-file is pressent.  This is preventing
  us from using native cpp code.  Also this do not address that some
  projects will need to set other options like clr:pure, clr:safe.
  This could be implemented as a cmake option, so it is possible to
  specify exactly what is needed.  Existing VSWindowsFormsResx Test
  project is updated so it will be working with my changes.
CMakeDetermineVSServicePack: Add VS 11 update 3
automoc: add a global AUTOMOC_TARGETS_FOLDER property

This has been requested, along with a patch, by Shaun Williams
 in http://public.kitware.com/Bug/view.php?id=13788 .
It adds a global property AUTOMOC_TARGETS_FOLDER, which can
be used to group the automoc targets together in a folder e.g.
in Visual Studio.

Alex
Remove some uses of obsolete 'register' storage specifier

Remove the keyword from all Source/* files outside of KWSys.
Document removal of 'register' from flex/bison output

In each .l and .y input file that has instructions for manual
transformation of the output to include a step to remove the 'register'
storage specifier.
install: do not strip dll import libraries (#14123)

DLL import libraries exist specifically to have symbols.
Ninja: GlobalNinjaGenerator WriteBuild and WritePhonyBuild non static

To properly track the usage of dependencies that are generated at
compile time as the side effect of other build steps we need
to make the WriteBuild and WritePhonyBuild commands non static
Ninja: Custom Command file depends don't need to exist before building

When converting custom commands for the ninja build system we
need to make sure that any file dependencies that exist in the build
tree are converted to phony targets. This tells ninja that these
files might not exist when starting the build, but could be generated
during the build.

This is done by tracking all dependencies for custom command targets.
After all have been written out we remove all items from the set
that have been seen as a target, custom command output, an alias,
or a file in the source directory. Anything that is left is considered
to be a file that will be generated as a side effect of another
custom command.
Merge topic 'ninja_phony_targets'

539356f Ninja: Custom Command file depends don't need to exist before building
874e171 Ninja: GlobalNinjaGenerator WriteBuild and WritePhonyBuild non static
88d27ad Add a test to expose a bug with add_custom_command and ninja.
Merge topic 'split-GeneratorExpression-test'

cacb938 Split the GeneratorExpression test into a third part.
Merge topic 'vs-windows-forms'

6c9712c VS: Add Resx configuration to the vcxproj file
Merge topic 'CMakeDetermineVSServicePack-vs11'

f449c68 CMakeDetermineVSServicePack: Add VS 11 update 3
Merge topic 'DontStripImportLibs'

ae8e654 install: do not strip dll import libraries (#14123)
Merge topic 'AddAutomocTargetFolder'

ba0e06f automoc: add a global AUTOMOC_TARGETS_FOLDER property
Merge topic 'clang-register-warnings'

e1381b1 Document removal of 'register' from flex/bison output
1399825 Remove some uses of obsolete 'register' storage specifier