<div dir="ltr"><div>In our project, we need to build an Win8+ Metro app. Currently the CMake do support VS_WINRT_EXTENSIONS. However, if you want to build an exe instead of dll or lib, even with x86 or x64, it always fails because lacking of some tags in vcxproj and sln.<br>
</div><div><br></div><div>The requirements about it in our project are:</div><div>1. The primary platform is x86 and x64.</div><div>2. Support both MSBuild and VS2012+ for building.</div><div><br></div><div>So I made this patch for WinRT/Metro apps, based on the master branch of CMake. In this patch, </div>
<div><br></div><div><div>1. Add AppContainerApplication, ApplicationType, MinimumVisualStudioVersion and ApplicationTypeRevision tags to vcxproj when VS_WINRT_EXTENSIONS is on.</div><div>2. Recognize AppxManifest file type.</div>
<div>3. A dedicated boolean source file property "VS_WINRT_CONTENT" is added. Generator expressions is also supported here.</div><div>4. Add "Deploy.0" in .sln for deploy WinRT apps by default, as WinCE apps do.</div>
<div>5. Add PackageCertificateKeyFile tag to vcxproj for package certification.</div></div><div><br></div><div>After that, an app with x86 or x64 configuration can be correctly built an packed. Do you have some more suggestions about this feature?</div>
<div>Thanks.</div><div><br></div><div>-- <br>Minmin Gong
</div></div>