diff options
author | John Farrier <john.farrier@digitalinblue.com> | 2013-04-29 14:48:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-05-16 17:06:44 (GMT) |
commit | 79ec7868d0f08c9ff2e6fa6454b205132acecc24 (patch) | |
tree | a5526400e3ac907c10b42cfd28fbcd419a11a020 /Source/cmGeneratorTarget.cxx | |
parent | c80594ba1274c3dc44c3f2efd70bd5c3d9066bf5 (diff) | |
download | CMake-79ec7868d0f08c9ff2e6fa6454b205132acecc24.zip CMake-79ec7868d0f08c9ff2e6fa6454b205132acecc24.tar.gz CMake-79ec7868d0f08c9ff2e6fa6454b205132acecc24.tar.bz2 |
VS: Add Windows Forms Support
Add support to maintain designer functionality for Visual Studio C++
Windows Forms projects. Also add a test project showing how to use
the CMakeLists.txt file and, when successfully configured, will allow
use of the designer for the included form.
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 335ba0f..f5d1560 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -98,6 +98,18 @@ void cmGeneratorTarget::ClassifySources() this->IDLSources.push_back(sf); if(isObjLib) { badObjLib.push_back(sf); } } + else if(ext == "resx") + { + // Build and save the name of the corresponding .h file + // This relationship will be used later when building the project files. + // Both names would have been auto generated from Visual Studio + // where the user supplied the file name and Visual Studio + // appended the suffix. + std::string resx = sf->GetFullPath(); + std::string hFileName = resx.substr(0, resx.find_last_of(".")) + ".h"; + this->ExpectedResxHeaders.insert(hFileName); + this->ResxSources.push_back(sf); + } else if(header.find(sf->GetFullPath().c_str())) { this->HeaderSources.push_back(sf); |