[cmake-developers] [PATCH 3/3] FindQt4: document cross compilation

Pascal Bach pascal.bach at siemens.com
Wed Jul 29 08:32:48 EDT 2015


---
 Modules/FindQt4.cmake | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake
index 9d03378..64c06e1 100644
--- a/Modules/FindQt4.cmake
+++ b/Modules/FindQt4.cmake
@@ -29,6 +29,26 @@
 #  for a particular executable, set the ``QT4_NO_LINK_QTMAIN`` target
 #  property to ``TRUE`` on the executable.
 #
+# Cross Compile
+# ^^^^^^^^^^^^^
+#
+# To find Qt in a cross compile environment set the following variables in your toolchain file:
+#
+#
+# ``QT_BINARY_DIR``  => Path to native Qt binary directory
+# ``QT_LIBRARY_DIR`` => Path to target Qt library directory
+# ``QT_INCLUDE_DIR`` => Path to target Qt include directory
+# ``QT_MKSPECS_DIR`` => Path to target Qt mkspecs directory
+
+# example
+#
+# ::
+#   set( QT_BINARY_DIR   /sysroots/x86_64-linux/usr/bin )
+#   set( QT_LIBRARY_DIR  /sysroots/arm/usr/lib )
+#   set( QT_INCLUDE_DIR  /sysroots/arm/usr/include/qtopia )
+#   set( QT_MKSPECS_DIR  /sysroots/arm/usr/share/qtopia/mkspecs )
+#
+#
 # Qt Build Tools
 # ^^^^^^^^^^^^^^
 #
-- 
1.9.1



More information about the cmake-developers mailing list