This is an early release

We are integrating feedback from Kitware about our implementation and some things will likely change

This fork adds support for producing Windows Store and Windows Phone binaries targeting Windows 8 and 8.1 as well as Windows Phone 8.0 and 8.1 using the Visual Studio 2012 and 2013 generators and toolsets. The also adds some multi-platform support which allows for producing x86, x64 and ARM from the same project file.

The latest drop has the changes that Kitware has made to use platform generators to target Windows Phone and Windows Store apps. From the command line the following variables need to be set:

-DCMAKE_SYSTEM_NAME=WindowsPhone (or WindowsStore)
For example see tests\VSWinStorePhone

these are obsolete and for our older builds
Some new variables were added to specify the platform targeted:
CMAKE_VS_TARGET_PLATFORM specifies which type of application is being produced:
  • Windows-> Desktop
  • WindowsStore->Modern
  • WindowsPhone->WP
If the variable is not specified, it will default to Windows.

CMAKE_VS_TARGET_VERSION specifies the version of the platform being targeted. This is applicable for Windows Phone and Windows Store configurations only (and a default be automatically populated based on the toolchain selected, 8.1 for VS 2013 and 8.0 for VS 2012).
Possible versions currently are 8.0 and 8.1 (these are strings)
end obsolete

VS_SHADER_CONTENT specifies the type of shader for HLSL files allowing for them to be compiled during build and included in the app package.

Two samples have been included to show the functionality:
  • tests\VSWinStorePhone contains a project that produces a Store or Phone app, completely packaged.
  • tests\VSWinRT contains a WinRT library project that shows multiple WinRT components being linked together.

You can get an pre-built installer for CMake from the CMake Installer using Platform Generators
The old installer is still available from the downloads page
Click here for instructions on Building CMake
Try our quick start coding challenge with CMake

Last edited Aug 27, 2014 at 10:53 PM by gillesk, version 10