To create WINRT project we need to have CMake >= 2.8.10 and:
- Set project type to be Windows Store App(CMAKE: SET_TARGET_PROPERTIES(target PROPERTIES VS_WINRT_EXTENSIONS TRUE)
- Add compiler flag /ZW for WinRT compilation(CMAKE: ADD_DEFINITIONS(-ZW))
- Add App.xaml.h, App.xaml.cpp
- Add App.xaml so VS will generate some additional files from it(CMAKE: HOW?)
- Add Package.appxmanifest with description so VS will use it(CMAKE: HOW?)
Thank you.
UPDATE: CMake bug report referring to this question is here 0013749: Cannot target Windows 8 RT from CMake without workarounds.