diff options
author | Jonas Andersen <jonas@fja.dk> | 2013-06-28 07:04:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-06-28 13:23:41 (GMT) |
commit | 6c9712c47b99cb5e955f2a72b4093558768a7cc1 (patch) | |
tree | 0a8897afca7b9f844b15a18ba1b530a7073c0ef2 /Source/cmVisualStudio10TargetGenerator.h | |
parent | 90441b289da6e7bd9f50a970d7adefc7b6be749f (diff) | |
download | CMake-6c9712c47b99cb5e955f2a72b4093558768a7cc1.zip CMake-6c9712c47b99cb5e955f2a72b4093558768a7cc1.tar.gz CMake-6c9712c47b99cb5e955f2a72b4093558768a7cc1.tar.bz2 |
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.
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.h')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.h b/Source/cmVisualStudio10TargetGenerator.h index 73d5961..9a480a8 100644 --- a/Source/cmVisualStudio10TargetGenerator.h +++ b/Source/cmVisualStudio10TargetGenerator.h @@ -59,6 +59,7 @@ private: void WriteSources(const char* tool, std::vector<cmSourceFile*> const&); void WriteAllSources(); void WriteDotNetReferences(); + void WriteEmbeddedResourceGroup(); void WriteWinRTReferences(); void WritePathAndIncrementalLinkOptions(); void WriteItemDefinitionGroups(); |