浏览代码

Help: Add Windows Phone/Store cross-compiling to cmake-toolchains.7

Show simple example toolchain files for each.
Brad King 11 年之前
父节点
当前提交
2702216637
共有 1 个文件被更改,包括 22 次插入0 次删除
  1. 22 0
      Help/manual/cmake-toolchains.7.rst

+ 22 - 0
Help/manual/cmake-toolchains.7.rst

@@ -218,3 +218,25 @@ Further :variable:`CMAKE_SYSTEM_VERSION` tells the generator what version of
 Windows CE to use.  Currently version 8.0 (Windows Embedded Compact 2013) is
 supported out of the box.  Other versions may require one to set
 :variable:`CMAKE_GENERATOR_TOOLSET` to the correct value.
+
+Cross Compiling for Windows Phone
+---------------------------------
+
+A toolchain file to configure a Visual Studio generator for
+Windows Phone may look like this:
+
+.. code-block:: cmake
+
+  set(CMAKE_SYSTEM_NAME WindowsPhone)
+  set(CMAKE_SYSTEM_VERSION 8.1)
+
+Cross Compiling for Windows Store
+---------------------------------
+
+A toolchain file to configure a Visual Studio generator for
+Windows Store may look like this:
+
+.. code-block:: cmake
+
+  set(CMAKE_SYSTEM_NAME WindowsStore)
+  set(CMAKE_SYSTEM_VERSION 8.1)